Compartilhar via


StreamingServiceCollectionExtensions.AddStreamFilter<T> Método

Definição

Adiciona um filtro de fluxo.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddStreamFilter<T> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name) where T : class, Orleans.Streams.Filtering.IStreamFilter;
static member AddStreamFilter : Microsoft.Extensions.DependencyInjection.IServiceCollection * string -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'T : null and 'T :> Orleans.Streams.Filtering.IStreamFilter)
<Extension()>
Public Function AddStreamFilter(Of T As {Class, IStreamFilter}) (services As IServiceCollection, name As String) As IServiceCollection

Parâmetros de tipo

T

O tipo de filtro de fluxo.

Parâmetros

services
IServiceCollection

A coleção de serviços.

name
String

O nome do filtro de fluxo.

Retornos

A coleção de serviços.

Aplica-se a