ServiceCollectionExtensions.AddGrainCallFilter 方法

定义

重载

AddGrainCallFilter(IServiceCollection, GrainCallFilterDelegate)

通过委托将筛选器 IGrainCallFilter 管道添加到筛选器管道。

AddGrainCallFilter(IServiceCollection, IGrainCallFilter)

向筛选器管道添加一个 IGrainCallFilter

AddGrainCallFilter<TImplementation>(IServiceCollection)

向筛选器管道添加一个 IGrainCallFilter

AddGrainCallFilter(IServiceCollection, GrainCallFilterDelegate)

通过委托将筛选器 IGrainCallFilter 管道添加到筛选器管道。

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddGrainCallFilter (this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, Orleans.GrainCallFilterDelegate filter);
static member AddGrainCallFilter : Microsoft.Extensions.DependencyInjection.IServiceCollection * Orleans.GrainCallFilterDelegate -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddGrainCallFilter (collection As IServiceCollection, filter As GrainCallFilterDelegate) As IServiceCollection

参数

collection
IServiceCollection

服务集合。

filter
GrainCallFilterDelegate

筛选器。

返回

服务集合。

适用于

AddGrainCallFilter(IServiceCollection, IGrainCallFilter)

向筛选器管道添加一个 IGrainCallFilter

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddGrainCallFilter (this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, Orleans.IGrainCallFilter filter);
static member AddGrainCallFilter : Microsoft.Extensions.DependencyInjection.IServiceCollection * Orleans.IGrainCallFilter -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddGrainCallFilter (collection As IServiceCollection, filter As IGrainCallFilter) As IServiceCollection

参数

collection
IServiceCollection

服务集合。

filter
IGrainCallFilter

筛选器。

返回

服务集合。

适用于

AddGrainCallFilter<TImplementation>(IServiceCollection)

向筛选器管道添加一个 IGrainCallFilter

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddGrainCallFilter<TImplementation> (this Microsoft.Extensions.DependencyInjection.IServiceCollection collection) where TImplementation : class, Orleans.IGrainCallFilter;
static member AddGrainCallFilter : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Implementation : null and 'Implementation :> Orleans.IGrainCallFilter)
<Extension()>
Public Function AddGrainCallFilter(Of TImplementation As {Class, IGrainCallFilter}) (collection As IServiceCollection) As IServiceCollection

类型参数

TImplementation

筛选器实现类型。

参数

collection
IServiceCollection

服务集合。

返回

服务集合。

适用于