Skip to content

Interface IServerTransport

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

Represents a server-side transport that accepts incoming connections.

public interface IServerTransport : IAsyncDisposable

IAsyncDisposable

If disposal re-enters the owning RpcHost, await that call from the disposal execution context. Do not dispatch it through APIs that suppress System.Threading.ExecutionContext flow, because the host cannot distinguish that detached work from an unrelated concurrent disposal.

Accepts an incoming connection.

Task<IRpcChannel> AcceptAsync(CancellationToken ct = default)

ct CancellationToken

Task<IRpcChannel>

Starts listening for connections.

Task StartAsync(CancellationToken ct = default)

ct CancellationToken

Task

Stops listening for connections.

Task StopAsync(CancellationToken ct = default)

ct CancellationToken

Task