Table of Contents

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 Exception

The exception that was thrown

Returns

Task

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 Exception

The exception that was thrown

Returns

Task

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

Task

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

Task

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

Task

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

Task

Type Parameters

T

The event data type