Table of Contents

Struct MessageFramer.FramedMessage

Namespace
DotBoxD.Services.Protocol
Assembly
DotBoxD.Services.dll

A framed message read from a stream by ReadMessageAsync(Stream, CancellationToken). Body is the message body only — the 9-byte frame header has already been stripped, unlike the full-frame payload an IRpcChannel.ReceiveAsync returns. The caller owns it and must dispose it.

public readonly record struct MessageFramer.FramedMessage : IEquatable<MessageFramer.FramedMessage>
Implements
Inherited Members

Constructors

FramedMessage(int, MessageType, Payload)

A framed message read from a stream by ReadMessageAsync(Stream, CancellationToken). Body is the message body only — the 9-byte frame header has already been stripped, unlike the full-frame payload an IRpcChannel.ReceiveAsync returns. The caller owns it and must dispose it.

public FramedMessage(int MessageId, MessageType Type, Payload Body)

Parameters

MessageId int
Type MessageType
Body Payload

Properties

Body

public Payload Body { get; init; }

Property Value

Payload

MessageId

public int MessageId { get; init; }

Property Value

int

Type

public MessageType Type { get; init; }

Property Value

MessageType