GrainCallFilterExtensions.AddGrainCallFilter 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddGrainCallFilter(IServiceCollection, GrainCallFilterDelegate) |
已过时.
通过委托将筛选器 IIncomingGrainCallFilter 管道添加到筛选器管道。 |
AddGrainCallFilter(IServiceCollection, IIncomingGrainCallFilter) |
已过时.
向筛选器管道添加一个 IIncomingGrainCallFilter 。 |
AddGrainCallFilter<TImplementation>(IServiceCollection) |
已过时.
向筛选器管道添加一个 IIncomingGrainCallFilter 。 |
AddGrainCallFilter(IServiceCollection, GrainCallFilterDelegate)
- Source:
- GrainCallFilterExtensions.cs
注意
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)
- Source:
- GrainCallFilterExtensions.cs
注意
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)
- Source:
- GrainCallFilterExtensions.cs
注意
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
服务集合。
返回
服务集合。
- 属性