Class ConsumesAttribute
Namespace: Agents.Net
Assembly: Agents.Net.dll
Syntax
public sealed class ConsumesAttribute : Attribute
Remarks
This attribute is only valid for Agents.
Constructors
| Improve this Doc View SourceConsumesAttribute(Type)
Initializes a new instance of the ConsumesAttribute class.
Declaration
public ConsumesAttribute(Type messageType)
Parameters
Type | Name | Description |
---|---|---|
Type | messageType |
Properties
| Improve this Doc View SourceImplicitly
Gets or sets the Boolean value indicating whether the MessageType is consumed explicitly or
implicitly. The default value is false
.
Declaration
public bool Implicitly { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
Remarks
Consuming the message implicitly means, that the Execute(Message) method is not called for this
MessageType. The Message is retrieved and used otherwise. If this property is
set to false
it has no effect on the execution, but serves as documentation.
MessageType
Declaration
public Type MessageType { get; }
Property Value
Type | Description |
---|---|
Type |