Class MessageAttribute<TMessage>
Indicates that the type can be used as message payload.
Inherited Members
Namespace: DotNext.Net.Cluster.Messaging
Assembly: DotNext.Net.Cluster.dll
Syntax
public sealed class MessageAttribute<TMessage> : MessageAttribute where TMessage : notnull, ISerializable<TMessage>
Type Parameters
Name | Description |
---|---|
TMessage | The type of the message payload. |
Remarks
Initializes a new instance of the attribute.
Constructors
| Edit this page View SourceMessageAttribute(string)
Indicates that the type can be used as message payload.
Declaration
public MessageAttribute(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the message. |
Remarks
Initializes a new instance of the attribute.