Class SingleConnectionTransport
Client transport over an already-established connection.
public sealed class SingleConnectionTransport : ITransport, IAsyncDisposable
- Inheritance
-
SingleConnectionTransport
- Implements
- Inherited Members
- Extension Methods
Constructors
SingleConnectionTransport(IRpcChannel, bool)
public SingleConnectionTransport(IRpcChannel connection, bool ownsConnection = false)
Parameters
connectionIRpcChannelownsConnectionbool
Properties
Connection
Gets the active connection (client-side).
public IRpcChannel? Connection { get; }
Property Value
IsConnected
Gets whether there is an active connection.
public bool IsConnected { get; }
Property Value
Methods
ConnectAsync(CancellationToken)
Establishes a connection (client-side).
public Task ConnectAsync(CancellationToken ct = default)
Parameters
Returns
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
public ValueTask DisposeAsync()
Returns
- ValueTask
A task that represents the asynchronous dispose operation.