Class MessageHubGenericMessage<TContent>
Generic message with user specified content.
Implements
Inherited Members
Namespace: Swan.Messaging
Syntax
public class MessageHubGenericMessage<TContent> : MessageHubMessageBase, IMessageHubMessage
Type Parameters
Name | Description |
---|---|
TContent | Content type to store. |
Constructors
MessageHubGenericMessage(Object, TContent)
Initializes a new instance of the MessageHubGenericMessage<TContent> class.
Declaration
public MessageHubGenericMessage(object sender, TContent content)
Parameters
Type | Name | Description |
---|---|---|
Object | sender | The sender. |
TContent | content | The content. |
Properties
Content
Contents of the message.
Declaration
public TContent Content { get; protected set; }
Property Value
Type | Description |
---|---|
TContent |