Share via


PayloadDisassembler Class

Definition

PayloadDisassemblers take data payloads and break them into chunks to be sent out over the transport and reassembled on the receiving side. This allows for payload multiplexing and avoids a single large payload from blocking the transport.

public abstract class PayloadDisassembler
type PayloadDisassembler = class
Public MustInherit Class PayloadDisassembler
Inheritance
PayloadDisassembler
Derived

Constructors

PayloadDisassembler(IPayloadSender, Guid)

Initializes a new instance of the PayloadDisassembler class.

Properties

Serializer

Gets or sets the Newtonsoft.Json.JsonSerializer for use by this disassembler. Used to set custom SerializationSettings.

Type

Gets the one character type of the payload this disassembler is operating on. TransportConstants.

Methods

DisassembleAsync(CancellationToken)

Begins the process of disassembling a payload and sending the resulting chunks to the PayloadSender to dispatch over the transport.

GetStreamAsync()

Gets the stream this disassembler is operating on.

GetStreamDescription(ResponseMessageStream)

Creates and returns the StreamDescription of the passed ResponseMessageStream.

Serialize<T>(T, MemoryStream, Int32)

Serializes the item into the MemoryStream and exposes the length of the result.

Applies to