Skip to content

Struct MessageFramer.FramedMessage

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

A framed message read from a stream by DotBoxD.Services.Protocol.MessageFramer.ReadMessageAsync(System.IO.Stream,System.Threading.CancellationToken). DotBoxD.Services.Protocol.MessageFramer.FramedMessage.Body is the message body only; the caller owns it and must dispose it.

public readonly record struct MessageFramer.FramedMessage : IEquatable<MessageFramer.FramedMessage>

IEquatable<MessageFramer.FramedMessage>

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

A framed message read from a stream by DotBoxD.Services.Protocol.MessageFramer.ReadMessageAsync(System.IO.Stream,System.Threading.CancellationToken). DotBoxD.Services.Protocol.MessageFramer.FramedMessage.Body is the message body only; the caller owns it and must dispose it.

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

MessageId int

Type MessageType

Body Payload

public Payload Body { get; init; }

Payload

public int MessageId { get; init; }

int

public MessageType Type { get; init; }

MessageType