Table of Contents

Class SingleConnectionServerTransport

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

Server transport that accepts one already-established connection.

public sealed class SingleConnectionServerTransport : IServerTransport, IAsyncDisposable
Inheritance
SingleConnectionServerTransport
Implements
Inherited Members

Constructors

SingleConnectionServerTransport(IRpcChannel, bool)

public SingleConnectionServerTransport(IRpcChannel connection, bool ownsConnection = false)

Parameters

connection IRpcChannel
ownsConnection bool

Methods

AcceptAsync(CancellationToken)

Accepts an incoming connection.

public Task<IRpcChannel> AcceptAsync(CancellationToken ct = default)

Parameters

ct CancellationToken

Returns

Task<IRpcChannel>

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.

StartAsync(CancellationToken)

Starts listening for connections.

public Task StartAsync(CancellationToken ct = default)

Parameters

ct CancellationToken

Returns

Task

StopAsync(CancellationToken)

Stops listening for connections.

public Task StopAsync(CancellationToken ct = default)

Parameters

ct CancellationToken

Returns

Task