Interface IMessage
- Namespace
- NLightning.Bolts.Interfaces
- Assembly
- NLightning.Bolts.dll
Interface for a message.
public interface IMessage
Properties
Extension
The extension of the message, if any.
TlvStream? Extension { get; }
Property Value
Payload
The payload of the message.
IMessagePayload Payload { get; }
Property Value
Type
The type of the message. MessageTypes.
ushort Type { get; }
Property Value
Methods
SerializeAsync(Stream)
Serialize the message to a stream.
Task SerializeAsync(Stream stream)
Parameters
stream
StreamThe stream to serialize to.
Returns
- Task
A task that represents the asynchronous operation.