Class SingleConnectionServerTransport
Namespace: DotBoxD.Services.Transport
Assembly: DotBoxD.Services.dll
Server transport that accepts one already-established connection.
public sealed class SingleConnectionServerTransport : IServerTransport, IAsyncDisposableInheritance
Section titled “Inheritance”object ← SingleConnectionServerTransport
Implements
Section titled “Implements”IServerTransport, IAsyncDisposable
Inherited Members
Section titled “Inherited Members”object.Equals(object), object.Equals(object, object), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object, object), object.ToString()
Constructors
Section titled “Constructors”SingleConnectionServerTransport(IRpcChannel, bool)
Section titled “ SingleConnectionServerTransport(IRpcChannel, bool)”public SingleConnectionServerTransport(IRpcChannel connection, bool ownsConnection = false)Parameters
Section titled “Parameters”connection IRpcChannel
ownsConnection bool
Methods
Section titled “Methods”AcceptAsync(CancellationToken)
Section titled “ AcceptAsync(CancellationToken)”Accepts an incoming connection.
public Task<IRpcChannel> AcceptAsync(CancellationToken ct = default)Parameters
Section titled “Parameters”Returns
Section titled “Returns”DisposeAsync()
Section titled “ DisposeAsync()”Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
public ValueTask DisposeAsync()Returns
Section titled “Returns”A task that represents the asynchronous dispose operation.
StartAsync(CancellationToken)
Section titled “ StartAsync(CancellationToken)”Starts listening for connections.
public Task StartAsync(CancellationToken ct = default)Parameters
Section titled “Parameters”Returns
Section titled “Returns”StopAsync(CancellationToken)
Section titled “ StopAsync(CancellationToken)”Stops listening for connections.
public Task StopAsync(CancellationToken ct = default)