Search Results for

    Show / Hide Table of Contents

    Class ConsumesAttribute

    This attribute declares which Messages are consumed by the Agent.

    Inheritance
    Object
    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 Source

    ConsumesAttribute(Type)

    Initializes a new instance of the ConsumesAttribute class.

    Declaration
    public ConsumesAttribute(Type messageType)
    Parameters
    Type Name Description
    Type messageType

    The type the the Message that is consumed by the Agent.

    Properties

    | Improve this Doc View Source

    Implicitly

    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

    true if the MessageType is consumed implicitly; otherwise false.

    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.

    | Improve this Doc View Source

    MessageType

    Gets the type of Message that is consumed by the Agent.

    Declaration
    public Type MessageType { get; }
    Property Value
    Type Description
    Type
    • Improve this Doc
    • View Source
    In This Article
    Back to top © Copyright Tobias Wilker and contributors