Interface ITransport
Namespace: DotBoxD.Services.Transport
Assembly: DotBoxD.Services.dll
Represents a transport layer for establishing connections.
public interface ITransport : IAsyncDisposableImplements
Section titled “Implements”Extension Methods
Section titled “Extension Methods”RpcTransportExtensions.ConnectPeerAsync(ITransport, ISerializer, RpcPeerOptions?, CancellationToken), RpcTransportExtensions.ConnectPeerAsync(ITransport, ISerializer, Action<RpcPeer>, RpcPeerOptions?, CancellationToken)
Properties
Section titled “Properties”Connection
Section titled “ Connection”Gets the active connection (client-side).
IRpcChannel? Connection { get; }Property Value
Section titled “Property Value”IsConnected
Section titled “ IsConnected”Gets whether there is an active connection.
bool IsConnected { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”ConnectAsync(CancellationToken)
Section titled “ ConnectAsync(CancellationToken)”Establishes a connection (client-side).
Task ConnectAsync(CancellationToken ct = default)