Interface EventObserver<TInstance>
- Namespace
- Automatonymous
- Assembly
- Automatonymous.dll
public interface EventObserver<in TInstance>
Type Parameters
TInstance
Methods
ExecuteFault(EventContext<TInstance>, Exception)
Called when the activity execution faults and is not handled by the activities
Task ExecuteFault(EventContext<in TInstance> context, Exception exception)
Parameters
context
EventContext<TInstance>The event context
exception
ExceptionThe exception that was thrown
Returns
ExecuteFault<T>(EventContext<TInstance, T>, Exception)
Called when the activity execution faults and is not handled by the activities
Task ExecuteFault<T>(EventContext<in TInstance, T> context, Exception exception)
Parameters
context
EventContext<TInstance, T>The event context
exception
ExceptionThe exception that was thrown
Returns
Type Parameters
T
The message type
PostExecute(EventContext<TInstance>)
Called when the event has been processed by the activities
Task PostExecute(EventContext<in TInstance> context)
Parameters
context
EventContext<TInstance>The event context
Returns
PostExecute<T>(EventContext<TInstance, T>)
Called when the event has been processed by the activities
Task PostExecute<T>(EventContext<in TInstance, T> context)
Parameters
context
EventContext<TInstance, T>The event context
Returns
Type Parameters
T
The event data type
PreExecute(EventContext<TInstance>)
Called before the event context is delivered to the activities
Task PreExecute(EventContext<in TInstance> context)
Parameters
context
EventContext<TInstance>The event context
Returns
PreExecute<T>(EventContext<TInstance, T>)
Called before the event context is delivered to the activities
Task PreExecute<T>(EventContext<in TInstance, T> context)
Parameters
context
EventContext<TInstance, T>The event context
Returns
Type Parameters
T
The event data type