Edytuj

Udostępnij za pośrednictwem


GrainCallFilterServiceCollectionExtensions.AddGrainCallFilter Method

Definition

Overloads

AddGrainCallFilter(IServiceCollection, GrainCallFilterDelegate)
Obsolete.

Adds an IIncomingGrainCallFilter to the filter pipeline via a delegate.

AddGrainCallFilter(IServiceCollection, IIncomingGrainCallFilter)
Obsolete.

Adds an IIncomingGrainCallFilter to the filter pipeline.

AddGrainCallFilter<TImplementation>(IServiceCollection)
Obsolete.

Adds an IIncomingGrainCallFilter to the filter pipeline.

AddGrainCallFilter(IServiceCollection, GrainCallFilterDelegate)

Caution

Use ISiloBuilder.AddIncomingGrainCallFilter

Adds an IIncomingGrainCallFilter to the filter pipeline via a delegate.

[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

Parameters

services
IServiceCollection

The service collection.

filter
GrainCallFilterDelegate

The filter.

Returns

The service collection.

Attributes

Applies to

AddGrainCallFilter(IServiceCollection, IIncomingGrainCallFilter)

Caution

Use ISiloBuilder.AddIncomingGrainCallFilter

Adds an IIncomingGrainCallFilter to the filter pipeline.

[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

Parameters

services
IServiceCollection

The service collection.

filter
IIncomingGrainCallFilter

The filter.

Returns

The service collection.

Attributes

Applies to

AddGrainCallFilter<TImplementation>(IServiceCollection)

Caution

Use ISiloBuilder.AddIncomingGrainCallFilter

Adds an IIncomingGrainCallFilter to the filter pipeline.

[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

Type Parameters

TImplementation

The filter implementation type.

Parameters

services
IServiceCollection

The service collection.

Returns

The service collection.

Attributes

Applies to