Class MessageEnvelope
public abstract class MessageEnvelope : IMessage
- Inheritance
-
MessageEnvelope
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
MessageEnvelope(string?, IDictionary<string, object>?)
public MessageEnvelope(string? from = null, IDictionary<string, object>? metadata = null)
Parameters
from
stringmetadata
IDictionary<string, object>
Properties
From
public string? From { get; set; }
Property Value
Metadata
public IDictionary<string, object> Metadata { get; set; }
Property Value
Methods
Create<TContent>(TContent, string?, IDictionary<string, object>?)
public static MessageEnvelope<TContent> Create<TContent>(TContent content, string? from = null, IDictionary<string, object>? metadata = null)
Parameters
content
TContentfrom
stringmetadata
IDictionary<string, object>
Returns
- MessageEnvelope<TContent>
Type Parameters
TContent