Interface CompensateContext
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
public interface CompensateContext : CourierContext, ConsumeContext<RoutingSlip>, ConsumeContext, PipeContext, MessageContext, IPublishEndpoint, IPublishObserverConnector, ISendEndpointProvider, ISendObserverConnector
- 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
Result
Set the compensation result, which completes the activity
CompensationResult Result { get; set; }
Property Value
Methods
Compensated()
The compensation was successful
CompensationResult Compensated()
Returns
Compensated(IDictionary<string, object>)
The compensation was successful
CompensationResult Compensated(IDictionary<string, object> variables)
Parameters
variables
IDictionary<string, object>The variables to be updated on the routing slip
Returns
Compensated(object)
The compensation was successful
CompensationResult Compensated(object values)
Parameters
values
objectThe variables to be updated on the routing slip
Returns
Failed()
The compensation failed
CompensationResult Failed()
Returns
Failed(Exception)
The compensation failed with the specified exception
CompensationResult Failed(Exception exception)
Parameters
exception
Exception