Table of Contents

Class SingleConnectionTransport

Namespace
DotBoxD.Services.Transport
Assembly
DotBoxD.Services.dll

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

connection IRpcChannel
ownsConnection bool

Properties

Connection

Gets the active connection (client-side).

public IRpcChannel? Connection { get; }

Property Value

IRpcChannel

IsConnected

Gets whether there is an active connection.

public bool IsConnected { get; }

Property Value

bool

Methods

ConnectAsync(CancellationToken)

Establishes a connection (client-side).

public Task ConnectAsync(CancellationToken ct = default)

Parameters

ct CancellationToken

Returns

Task

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.