Search Results for

    Show / Hide Table of Contents

    Class InterceptionAction

    The action that should be taken with the message that was intercepted.

    Inheritance
    Object
    InterceptionAction
    Namespace: Agents.Net
    Assembly: Agents.Net.dll
    Syntax
    public class InterceptionAction : object

    Properties

    | Improve this Doc View Source

    Continue

    Publish the message to all consuming agents.

    Declaration
    public static InterceptionAction Continue { get; }
    Property Value
    Type Description
    InterceptionAction
    | Improve this Doc View Source

    DoNotPublish

    Do not publish the message. If at least one InterceptorAgent returns this action, the message will not be published.

    Declaration
    public static InterceptionAction DoNotPublish { get; }
    Property Value
    Type Description
    InterceptionAction
    Remarks

    This action cannot be mixed with the DoNotPublish action. This will lead to an exception message.

    Methods

    | Improve this Doc View Source

    Delay(out InterceptionDelayToken)

    Delay the message. If at least one InterceptorAgent returns this action, the message will be published only after all InterceptionDelayTokens are released.

    Declaration
    public static InterceptionAction Delay(out InterceptionDelayToken delayToken)
    Parameters
    Type Name Description
    InterceptionDelayToken delayToken

    The delay token with which to release the message for sending.

    Returns
    Type Description
    InterceptionAction
    Remarks

    This action cannot be mixed with the DoNotPublish action. This will lead to an exception message.

    • Improve this Doc
    • View Source
    In This Article
    Back to top © Copyright Tobias Wilker and contributors