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
- Inheritance
-
NamedPipeServerTransport
- Implements
- Inherited Members
Constructors
NamedPipeServerTransport(string, int, int)
public NamedPipeServerTransport(string pipeName, int maxAllowedServerInstances = -1, int maxMessageSize = 16777216)
Parameters
Fields
DefaultFrameReadIdleTimeout
Default inter-read idle timeout applied to accepted connections' in-progress frame body 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
Field Value
Properties
FrameReadIdleTimeout
Inter-read idle timeout applied to accepted connections' in-progress frame body reads (slow-loris defense). null uses DefaultFrameReadIdleTimeout; InfiniteTimeSpan disables it. See StreamConnection.
public TimeSpan? FrameReadIdleTimeout { get; init; }
Property Value
Methods
AcceptAsync(CancellationToken)
Accepts an incoming connection.
public Task<IRpcChannel> AcceptAsync(CancellationToken ct = default)
Parameters
Returns
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
Returns
StopAsync(CancellationToken)
Stops listening for connections.
public Task StopAsync(CancellationToken ct = default)