Поделиться через


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

Коллекция служб.

Возвращаемое значение

Коллекция служб.

Атрибуты

Применяется к