Skip to content

Class NamedPipeServerTransport

Namespace: DotBoxD.Transports.NamedPipes
Assembly: DotBoxD.Transports.NamedPipes.dll

Server transport for accepting DotBoxD connections over a named pipe.

public sealed class NamedPipeServerTransport : IServerTransport, IAsyncDisposable

objectNamedPipeServerTransport

IServerTransport, IAsyncDisposable

object.Equals(object), object.Equals(object, object), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object, object), object.ToString()

NamedPipeServerTransport(string, int, int)

Section titled “ NamedPipeServerTransport(string, int, int)”
public NamedPipeServerTransport(string pipeName, int maxAllowedServerInstances = -1, int maxMessageSize = 16777216)

pipeName string

maxAllowedServerInstances int

maxMessageSize int

Default idle timeout applied to accepted connections’ frame reads (30 seconds). Mirrors TcpConnection.DefaultFrameReadIdleTimeout so accepted pipe connections get the same finite slow-loris defense the TCP transport applies by default.

public static readonly TimeSpan DefaultFrameReadIdleTimeout

TimeSpan

Idle timeout applied to accepted connections’ frame reads (slow-loris defense). null uses DotBoxD.Transports.NamedPipes.NamedPipeServerTransport.DefaultFrameReadIdleTimeout; System.Threading.Timeout.InfiniteTimeSpan disables it. See DotBoxD.Services.Transport.StreamConnection.

public TimeSpan? FrameReadIdleTimeout { get; init; }

TimeSpan?

Accepts an incoming connection.

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

ct CancellationToken

Task<IRpcChannel>

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

public ValueTask DisposeAsync()

ValueTask

A task that represents the asynchronous dispose operation.

Starts listening for connections.

public Task StartAsync(CancellationToken ct = default)

ct CancellationToken

Task

Stops listening for connections.

public Task StopAsync(CancellationToken ct = default)

ct CancellationToken

Task