ClientBuilderStreamingExtensions.AddMemoryStreams 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddMemoryStreams(IClientBuilder, String, Action<IClusterClientMemoryStreamConfigurator>)
使用默认的消息序列化程序 () DefaultMemoryMessageBodySerializer 向客户端添加新的内存中流提供程序。
public static Orleans.Hosting.IClientBuilder AddMemoryStreams (this Orleans.Hosting.IClientBuilder builder, string name, Action<Orleans.Hosting.IClusterClientMemoryStreamConfigurator> configure = default);
static member AddMemoryStreams : Orleans.Hosting.IClientBuilder * string * Action<Orleans.Hosting.IClusterClientMemoryStreamConfigurator> -> Orleans.Hosting.IClientBuilder
<Extension()>
Public Function AddMemoryStreams (builder As IClientBuilder, name As String, Optional configure As Action(Of IClusterClientMemoryStreamConfigurator) = Nothing) As IClientBuilder
参数
- builder
- IClientBuilder
生成器。
- name
- String
流提供程序名称。
- configure
- Action<IClusterClientMemoryStreamConfigurator>
配置委托。
返回
客户端生成器。
适用于
AddMemoryStreams<TSerializer>(IClientBuilder, String, Action<IClusterClientMemoryStreamConfigurator>)
将新的内存中流提供程序添加到客户端。
public static Orleans.Hosting.IClientBuilder AddMemoryStreams<TSerializer> (this Orleans.Hosting.IClientBuilder builder, string name, Action<Orleans.Hosting.IClusterClientMemoryStreamConfigurator> configure = default) where TSerializer : class, Orleans.Providers.IMemoryMessageBodySerializer;
static member AddMemoryStreams : Orleans.Hosting.IClientBuilder * string * Action<Orleans.Hosting.IClusterClientMemoryStreamConfigurator> -> Orleans.Hosting.IClientBuilder (requires 'Serializer : null and 'Serializer :> Orleans.Providers.IMemoryMessageBodySerializer)
<Extension()>
Public Function AddMemoryStreams(Of TSerializer As {Class, IMemoryMessageBodySerializer}) (builder As IClientBuilder, name As String, Optional configure As Action(Of IClusterClientMemoryStreamConfigurator) = Nothing) As IClientBuilder
类型参数
- TSerializer
t 序列化程序的类型。
参数
- builder
- IClientBuilder
生成器。
- name
- String
流提供程序名称。
- configure
- Action<IClusterClientMemoryStreamConfigurator>
配置委托。
返回
客户端生成器。