Class StreamPacketChannelOptions
Represents the options of a StreamPacketChannel.
public class StreamPacketChannelOptions
- Inheritance
-
StreamPacketChannelOptions
- Inherited Members
Properties
AutoDisposePackets
Gets a value indicating whether the channel disposes each packet once sent.
public required bool AutoDisposePackets { get; init; }
Property Value
Blocking
Gets a value indicating whether a send to a full queue waits for room; otherwise, the queue drops its oldest packet.
public required bool Blocking { get; init; }
Property Value
BufferSize
Gets or sets the sizes of the channel's send and receive buffers. The default is ConnectionPacketBufferSize.
public TransferBufferSize BufferSize { get; set; }
Property Value
ChannelId
Gets the channel's ID.
public required string ChannelId { get; init; }
Property Value
Lifespan
Gets how long the channel lives before it closes itself, or null for as long as its connection.
public required TimeSpan? Lifespan { get; init; }
Property Value
RequestTime
Gets the time of the request that made the channel, by the client's clock.
public required DateTime RequestTime { get; init; }
Property Value
StreamConnection
Gets the connection that carries the channel's packets, which the channel owns.
public required IStreamConnection StreamConnection { get; init; }
Property Value
TrafficMeter
Gets the meter that counts the channel's traffic and holds its reads to the session's receive limit, or null.
public TrafficMeter? TrafficMeter { get; init; }