Share via


ServiceJsonRpcDescriptor.WithMultiplexingStream Method

Definition

Overloads

WithMultiplexingStream(MultiplexingStream)

Returns an instance of ServiceRpcDescriptor that resembles this one, but with the MultiplexingStream property set to the specified value and Nerdbank.Streams.MultiplexingStream.Options set to null.

WithMultiplexingStream(MultiplexingStream+Options)

Returns an instance of ServiceJsonRpcDescriptor that resembles this one, but with the MultiplexingStreamOptions property set to a frozen copy of the specified value. If a Nerdbank.Streams.MultiplexingStream has been set, it is cleared.

WithMultiplexingStream(MultiplexingStream)

Returns an instance of ServiceRpcDescriptor that resembles this one, but with the MultiplexingStream property set to the specified value and Nerdbank.Streams.MultiplexingStream.Options set to 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

Parameters

multiplexingStream
Nerdbank.Streams.MultiplexingStream

The Nerdbank.Streams.MultiplexingStream that may be used by constructed clients or servers.

Returns

A clone of this instance, with the property changed. Or this same instance if the property already matches.

Applies to

WithMultiplexingStream(MultiplexingStream+Options)

Returns an instance of ServiceJsonRpcDescriptor that resembles this one, but with the MultiplexingStreamOptions property set to a frozen copy of the specified value. If a Nerdbank.Streams.MultiplexingStream has been set, it is cleared.

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

Parameters

multiplexingStreamOptions
Nerdbank.Streams.MultiplexingStream.Options

Options to use when setting up a new Nerdbank.Streams.MultiplexingStream that should be set up on a pipe before initializing RPC; null to not set up or use any.

Returns

A clone of this instance, with the property changed. Or this same instance if the property already matches.

Applies to