Share via


ServiceRpcDescriptor.WithMultiplexingStream(MultiplexingStream) Method

Definition

Caution

Use the WithMultiplexingStream(MultiplexingStream.Options) overload as may be defined in a derived type instead.

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:
 virtual Microsoft::ServiceHub::Framework::ServiceRpcDescriptor ^ WithMultiplexingStream(Nerdbank::Streams::MultiplexingStream ^ multiplexingStream);
[System.Obsolete("Use the WithMultiplexingStream(MultiplexingStream.Options) overload as may be defined in a derived type instead.")]
public virtual Microsoft.ServiceHub.Framework.ServiceRpcDescriptor WithMultiplexingStream (Nerdbank.Streams.MultiplexingStream? multiplexingStream);
[<System.Obsolete("Use the WithMultiplexingStream(MultiplexingStream.Options) overload as may be defined in a derived type instead.")>]
abstract member WithMultiplexingStream : Nerdbank.Streams.MultiplexingStream -> Microsoft.ServiceHub.Framework.ServiceRpcDescriptor
override this.WithMultiplexingStream : Nerdbank.Streams.MultiplexingStream -> Microsoft.ServiceHub.Framework.ServiceRpcDescriptor
Public Overridable 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.

Attributes

Applies to