Interface SagaConsumeContext<TSaga>
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
Consume context including the saga instance consuming the message. Note this does not expose the message type, for filters that do not care about message type.
public interface SagaConsumeContext<out TSaga> : ConsumeContext, PipeContext, MessageContext, IPublishEndpoint, IPublishObserverConnector, ISendEndpointProvider, ISendObserverConnector where TSaga : class, ISaga
Type Parameters
TSaga
The saga type
- Inherited Members
- Extension Methods
-
SchedulePublishExtensions.SchedulePublish(ConsumeContext, DateTime, object, Type, CancellationToken)SchedulePublishExtensions.SchedulePublish(ConsumeContext, TimeSpan, object, Type, CancellationToken)SendConsumeContextExecuteExtensions.Send(ConsumeContext, Uri, object, Type, Func<SendContext, Task>)
Properties
IsCompleted
True if the saga has been completed, signaling that the repository may remove it.
bool IsCompleted { get; }
Property Value
Saga
The saga instance for the current consume operation
TSaga Saga { get; }
Property Value
- TSaga
Methods
SetCompleted()
Mark the saga instance as completed, which may remove it from the repository or archive it, etc. Once completed, a saga instance should never again be visible, even if the same CorrelationId is specified.
Task SetCompleted()