Class MessageHandlerAttribute
Adds message matching criteria for IMessageHandler services.
Inheritance
Inherited Members
Namespace: Kephas.Messaging.AttributedModel
Assembly: Kephas.Messaging.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public class MessageHandlerAttribute : Attribute
Constructors
| Improve this Doc View SourceMessageHandlerAttribute(MessageTypeMatching)
Initializes a new instance of the MessageHandlerAttribute class.
Declaration
public MessageHandlerAttribute(MessageTypeMatching messageTypeMatching)
Parameters
Type | Name | Description |
---|---|---|
MessageTypeMatching | messageTypeMatching | The message type matching. |
MessageHandlerAttribute(MessageTypeMatching, Object)
Initializes a new instance of the MessageHandlerAttribute class.
Declaration
public MessageHandlerAttribute(MessageTypeMatching messageTypeMatching, object messageId)
Parameters
Type | Name | Description |
---|---|---|
MessageTypeMatching | messageTypeMatching | The message type matching. |
System.Object | messageId | The ID of the handled messages. |
MessageHandlerAttribute(MessageTypeMatching, Object, MessageIdMatching)
Initializes a new instance of the MessageHandlerAttribute class.
Declaration
public MessageHandlerAttribute(MessageTypeMatching messageTypeMatching, object messageId, MessageIdMatching messageIdMatching)
Parameters
Type | Name | Description |
---|---|---|
MessageTypeMatching | messageTypeMatching | The message type matching. |
System.Object | messageId | The ID of the handled messages. |
MessageIdMatching | messageIdMatching | The message ID matching. |
MessageHandlerAttribute(Object)
Initializes a new instance of the MessageHandlerAttribute class.
Declaration
public MessageHandlerAttribute(object messageId)
Parameters
Type | Name | Description |
---|---|---|
System.Object | messageId | The ID of the handled messages. |
Properties
| Improve this Doc View SourceEnvelopeType
Gets or sets the envelope type.
Declaration
[MetadataValue("EnvelopeType")]
public Type EnvelopeType { get; set; }
Property Value
Type | Description |
---|---|
System.Type | The envelope type. |
EnvelopeTypeMatching
Gets or sets the envelope type matching.
Declaration
[MetadataValue("EnvelopeTypeMatching")]
public MessageTypeMatching EnvelopeTypeMatching { get; set; }
Property Value
Type | Description |
---|---|
MessageTypeMatching | The envelope type matching. |
MessageId
Gets or sets the message ID.
Declaration
[MetadataValue("MessageId")]
public object MessageId { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The message ID. |
MessageIdMatching
Gets or sets the message ID matching.
Declaration
[MetadataValue("MessageIdMatching")]
public MessageIdMatching MessageIdMatching { get; set; }
Property Value
Type | Description |
---|---|
MessageIdMatching | The message ID matching. |
MessageTypeMatching
Gets or sets the message type matching.
Declaration
[MetadataValue("MessageTypeMatching")]
public MessageTypeMatching MessageTypeMatching { get; set; }
Property Value
Type | Description |
---|---|
MessageTypeMatching | The message type matching. |