Interface IEventObserver<TSaga>
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
public interface IEventObserver<TSaga> where TSaga : class, ISaga
Type Parameters
TSaga
Methods
ExecuteFault(BehaviorContext<TSaga>, Exception)
Called when the activity execution faults and is not handled by the activities
Task ExecuteFault(BehaviorContext<TSaga> context, Exception exception)
Parameters
context
BehaviorContext<TSaga>The event context
exception
ExceptionThe exception that was thrown
Returns
ExecuteFault<T>(BehaviorContext<TSaga, T>, Exception)
Called when the activity execution faults and is not handled by the activities
Task ExecuteFault<T>(BehaviorContext<TSaga, T> context, Exception exception) where T : class
Parameters
context
BehaviorContext<TSaga, T>The event context
exception
ExceptionThe exception that was thrown
Returns
Type Parameters
T
The message type
PostExecute(BehaviorContext<TSaga>)
Called when the event has been processed by the activities
Task PostExecute(BehaviorContext<TSaga> context)
Parameters
context
BehaviorContext<TSaga>The event context
Returns
PostExecute<T>(BehaviorContext<TSaga, T>)
Called when the event has been processed by the activities
Task PostExecute<T>(BehaviorContext<TSaga, T> context) where T : class
Parameters
context
BehaviorContext<TSaga, T>The event context
Returns
Type Parameters
T
The event data type
PreExecute(BehaviorContext<TSaga>)
Called before the event context is delivered to the activities
Task PreExecute(BehaviorContext<TSaga> context)
Parameters
context
BehaviorContext<TSaga>The event context
Returns
PreExecute<T>(BehaviorContext<TSaga, T>)
Called before the event context is delivered to the activities
Task PreExecute<T>(BehaviorContext<TSaga, T> context) where T : class
Parameters
context
BehaviorContext<TSaga, T>The event context
Returns
Type Parameters
T
The event data type