Struct MessageFramer.FramedMessage
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
MessageIdintTypeMessageTypeBodyPayload
Properties
Body
public Payload Body { get; init; }
Property Value
MessageId
public int MessageId { get; init; }
Property Value
Type
public MessageType Type { get; init; }