共用方式為


GrainCallFilterExtensions.AddGrainCallFilter 方法

定義

多載

AddGrainCallFilter(IServiceCollection, GrainCallFilterDelegate)
已淘汰.

IIncomingGrainCallFilter透過委派將 加入至篩選管線。

AddGrainCallFilter(IServiceCollection, IIncomingGrainCallFilter)
已淘汰.

IIncomingGrainCallFilter將 加入至篩選管線。

AddGrainCallFilter<TImplementation>(IServiceCollection)
已淘汰.

IIncomingGrainCallFilter將 加入至篩選管線。

AddGrainCallFilter(IServiceCollection, GrainCallFilterDelegate)

來源:
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)

來源:
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)

來源:
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

服務集合。

傳回

服務集合。

屬性

適用於