GrainCallFilterServiceCollectionExtensions.AddGrainCallFilter 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddGrainCallFilter(IServiceCollection, GrainCallFilterDelegate)
注意
Use ISiloBuilder.AddIncomingGrainCallFilter
IIncomingGrainCallFilter通过委托将 添加到筛选器管道。
[System.Obsolete("Use ISiloBuilder.AddIncomingGrainCallFilter", true)]
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddGrainCallFilter (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Orleans.GrainCallFilterDelegate filter);
[<System.Obsolete("Use ISiloBuilder.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 ISiloBuilder.AddIncomingGrainCallFilter
IIncomingGrainCallFilter将 添加到筛选器管道。
[System.Obsolete("Use ISiloBuilder.AddIncomingGrainCallFilter", true)]
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddGrainCallFilter (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Orleans.IIncomingGrainCallFilter filter);
[<System.Obsolete("Use ISiloBuilder.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 ISiloBuilder.AddIncomingGrainCallFilter
IIncomingGrainCallFilter将 添加到筛选器管道。
[System.Obsolete("Use ISiloBuilder.AddIncomingGrainCallFilter", true)]
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddGrainCallFilter<TImplementation> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TImplementation : class, Orleans.IIncomingGrainCallFilter;
[<System.Obsolete("Use ISiloBuilder.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
服务集合。
返回
服务集合。
- 属性