StreamingServiceCollectionExtensions.AddStreamFilter<T> 方法

定义

添加流筛选器。

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

类型参数

T

流筛选器类型。

参数

services
IServiceCollection

服务集合。

name
String

流筛选器名称。

返回

服务集合。

适用于