GrainCallFilterExtensions.AddGrainCallFilter 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddGrainCallFilter(IServiceCollection, GrainCallFilterDelegate)
警告
Use ISiloHostBuilder.AddIncomingGrainCallFilter
IIncomingGrainCallFilter透過委派將 加入至篩選管線。
[System.Obsolete("Use ISiloHostBuilder.AddIncomingGrainCallFilter", true)]
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddGrainCallFilter (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Orleans.GrainCallFilterDelegate filter);
[<System.Obsolete("Use ISiloHostBuilder.AddIncomingGrainCallFilter", true)>]
static member AddGrainCallFilter : Microsoft.Extensions.DependencyInjection.IServiceCollection * Orleans.GrainCallFilterDelegate -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddGrainCallFilter (services As IServiceCollection, filter As GrainCallFilterDelegate) As IServiceCollection
參數
- services
- IServiceCollection
服務集合。
- filter
- GrainCallFilterDelegate
篩選器。
傳回
服務集合。
- 屬性
適用於
AddGrainCallFilter(IServiceCollection, IIncomingGrainCallFilter)
警告
Use ISiloHostBuilder.AddIncomingGrainCallFilter
IIncomingGrainCallFilter將 加入至篩選管線。
[System.Obsolete("Use ISiloHostBuilder.AddIncomingGrainCallFilter", true)]
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddGrainCallFilter (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Orleans.IIncomingGrainCallFilter filter);
[<System.Obsolete("Use ISiloHostBuilder.AddIncomingGrainCallFilter", true)>]
static member AddGrainCallFilter : Microsoft.Extensions.DependencyInjection.IServiceCollection * Orleans.IIncomingGrainCallFilter -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddGrainCallFilter (services As IServiceCollection, filter As IIncomingGrainCallFilter) As IServiceCollection
參數
- services
- IServiceCollection
服務集合。
- filter
- IIncomingGrainCallFilter
篩選器。
傳回
服務集合。
- 屬性
適用於
AddGrainCallFilter<TImplementation>(IServiceCollection)
警告
Use ISiloHostBuilder.AddIncomingGrainCallFilter
IIncomingGrainCallFilter將 加入至篩選管線。
[System.Obsolete("Use ISiloHostBuilder.AddIncomingGrainCallFilter", true)]
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddGrainCallFilter<TImplementation> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TImplementation : class, Orleans.IIncomingGrainCallFilter;
[<System.Obsolete("Use ISiloHostBuilder.AddIncomingGrainCallFilter", true)>]
static member AddGrainCallFilter : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Implementation : null and 'Implementation :> Orleans.IIncomingGrainCallFilter)
<Extension()>
Public Function AddGrainCallFilter(Of TImplementation As {Class, IIncomingGrainCallFilter}) (services As IServiceCollection) As IServiceCollection
類型參數
- TImplementation
篩選實作類型。
參數
- services
- IServiceCollection
服務集合。
傳回
服務集合。
- 屬性