Table of Contents

Interface BehaviorExceptionContext<TSaga, TException>

Namespace
MassTransit
Assembly
MassTransit.Abstractions.dll

An exceptional behavior context

public interface BehaviorExceptionContext<TSaga, out TException> : BehaviorContext<TSaga>, SagaConsumeContext<TSaga>, ConsumeContext, PipeContext, MessageContext, IPublishEndpoint, IPublishObserverConnector, ISendEndpointProvider, ISendObserverConnector where TSaga : class, ISaga where TException : Exception

Type Parameters

TSaga
TException
Inherited Members
Extension Methods

Properties

Exception

TException Exception { get; }

Property Value

TException

Methods

CreateProxy<T>(Event<T>, T)

Return a proxy of the current behavior context with the specified event and data

BehaviorExceptionContext<TSaga, T, out TException> CreateProxy<T>(Event<T> @event, T data) where T : class

Parameters

event Event<T>

The event for the new context

data T

The data for the event

Returns

BehaviorExceptionContext<TSaga, T, TException>

Type Parameters

T

The data type