Class MessageAttribute
Indicates that the type can be used as message payload.
Inherited Members
Namespace: DotNext.Net.Cluster.Messaging
Assembly: DotNext.Net.Cluster.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public abstract class MessageAttribute : Attribute
Constructors
| Edit this page View SourceMessageAttribute(string)
Initializes a new instance of the attribute.
Declaration
protected MessageAttribute(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the message. |
Properties
| Edit this page View SourceMimeType
Gets or sets MIME type of the message.
Declaration
public string MimeType { get; init; }
Property Value
Type | Description |
---|---|
string |
Name
Gets the name of the message.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |