Share via


MessageFormatterDuplexPipeTracker.GetULongToken Method

Definition

Overloads

GetULongToken(IDuplexPipe)

Creates a token to represent an IDuplexPipe as it is transmitted from the client to an RPC server as a method argument.

GetULongToken(PipeReader)

Creates a token to represent a PipeReader as it is transmitted from the client to an RPC server as a method argument.

GetULongToken(PipeWriter)

Creates a token to represent a PipeWriter as it is transmitted from the client to an RPC server as a method argument.

GetULongToken(IDuplexPipe)

Creates a token to represent an IDuplexPipe as it is transmitted from the client to an RPC server as a method argument.

public ulong? GetULongToken (System.IO.Pipelines.IDuplexPipe? duplexPipe);
member this.GetULongToken : System.IO.Pipelines.IDuplexPipe -> Nullable<uint64>
Public Function GetULongToken (duplexPipe As IDuplexPipe) As Nullable(Of ULong)

Parameters

duplexPipe
IDuplexPipe

The client pipe that is to be shared with the RPC server. May be null.

Returns

The token to use as the RPC method argument; or null if duplexPipe was null.

Exceptions

Thrown if no MultiplexingStream was provided to the constructor or when serializing a message without an ID property.

Applies to

GetULongToken(PipeReader)

Creates a token to represent a PipeReader as it is transmitted from the client to an RPC server as a method argument.

public ulong? GetULongToken (System.IO.Pipelines.PipeReader? reader);
member this.GetULongToken : System.IO.Pipelines.PipeReader -> Nullable<uint64>
Public Function GetULongToken (reader As PipeReader) As Nullable(Of ULong)

Parameters

reader
PipeReader

The client pipe that is to be shared with the RPC server. May be null.

Returns

The token to use as the RPC method argument; or null if reader was null.

Exceptions

Thrown if no MultiplexingStream was provided to the constructor or when serializing a message without an ID property.

Applies to

GetULongToken(PipeWriter)

Creates a token to represent a PipeWriter as it is transmitted from the client to an RPC server as a method argument.

public ulong? GetULongToken (System.IO.Pipelines.PipeWriter? writer);
member this.GetULongToken : System.IO.Pipelines.PipeWriter -> Nullable<uint64>
Public Function GetULongToken (writer As PipeWriter) As Nullable(Of ULong)

Parameters

writer
PipeWriter

The client pipe that is to be shared with the RPC server. May be null.

Returns

The token to use as the RPC method argument; or null if writer was null.

Exceptions

Thrown if no MultiplexingStream was provided to the constructor or when serializing a message without an ID property.

Applies to