ServiceJsonRpcDescriptor.WithMultiplexingStream 方法

定义

重载

WithMultiplexingStream(MultiplexingStream)

返回一个 实例,该实例 ServiceRpcDescriptor 与此类似,但 MultiplexingStream 属性设置为指定值,并 Nerdbank.Streams.MultiplexingStream.Options 设置为 null

WithMultiplexingStream(MultiplexingStream+Options)

返回类似于此实例 ServiceJsonRpcDescriptor 的 实例,但 MultiplexingStreamOptions 属性设置为指定值的冻结副本。 Nerdbank.Streams.MultiplexingStream如果已设置 ,则会将其清除。

WithMultiplexingStream(MultiplexingStream)

返回一个 实例,该实例 ServiceRpcDescriptor 与此类似,但 MultiplexingStream 属性设置为指定值,并 Nerdbank.Streams.MultiplexingStream.Options 设置为 null

public:
 override Microsoft::ServiceHub::Framework::ServiceRpcDescriptor ^ WithMultiplexingStream(Nerdbank::Streams::MultiplexingStream ^ multiplexingStream);
public override Microsoft.ServiceHub.Framework.ServiceRpcDescriptor WithMultiplexingStream (Nerdbank.Streams.MultiplexingStream? multiplexingStream);
override this.WithMultiplexingStream : Nerdbank.Streams.MultiplexingStream -> Microsoft.ServiceHub.Framework.ServiceRpcDescriptor
Public Overrides Function WithMultiplexingStream (multiplexingStream As MultiplexingStream) As ServiceRpcDescriptor

参数

multiplexingStream
Nerdbank.Streams.MultiplexingStream

Nerdbank.Streams.MultiplexingStream可由构造的客户端或服务器使用的 。

返回

此实例的克隆,属性已更改。 如果 属性已匹配,则为同一实例。

适用于

WithMultiplexingStream(MultiplexingStream+Options)

返回类似于此实例 ServiceJsonRpcDescriptor 的 实例,但 MultiplexingStreamOptions 属性设置为指定值的冻结副本。 Nerdbank.Streams.MultiplexingStream如果已设置 ,则会将其清除。

public:
 Microsoft::ServiceHub::Framework::ServiceRpcDescriptor ^ WithMultiplexingStream(Nerdbank::Streams::MultiplexingStream::Options ^ multiplexingStreamOptions);
public Microsoft.ServiceHub.Framework.ServiceRpcDescriptor WithMultiplexingStream (Nerdbank.Streams.MultiplexingStream.Options? multiplexingStreamOptions);
override this.WithMultiplexingStream : Nerdbank.Streams.MultiplexingStream.Options -> Microsoft.ServiceHub.Framework.ServiceRpcDescriptor
Public Function WithMultiplexingStream (multiplexingStreamOptions As MultiplexingStream.Options) As ServiceRpcDescriptor

参数

multiplexingStreamOptions
Nerdbank.Streams.MultiplexingStream.Options

设置应在初始化 RPC 之前在管道上设置的新 Nerdbank.Streams.MultiplexingStream 时要使用的选项; null 不设置或使用任何选项。

返回

此实例的克隆,属性已更改。 如果 属性已匹配,则为同一实例。

适用于