Class InterceptionAction
The action that should be taken with the message that was intercepted.
Namespace: Agents.Net
Assembly: Agents.Net.dll
Syntax
public class InterceptionAction : object
Properties
| Improve this Doc View SourceContinue
Publish the message to all consuming agents.
Declaration
public static InterceptionAction Continue { get; }
Property Value
Type | Description |
---|---|
InterceptionAction |
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 SourceDelay(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.