Interface ConsumeContext<T>
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
public interface ConsumeContext<out T> : ConsumeContext, PipeContext, MessageContext, IPublishEndpoint, IPublishObserverConnector, ISendEndpointProvider, ISendObserverConnector where T : class
Type Parameters
T
- 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
Message
T Message { get; }
Property Value
- T
Methods
NotifyConsumed(TimeSpan, string)
Notify that the message has been consumed -- note that this is internal, and should not be called by a consumer
Task NotifyConsumed(TimeSpan duration, string consumerType)
Parameters
Returns
NotifyFaulted(TimeSpan, string, Exception)
Notify that a fault occurred during message consumption -- note that this is internal, and should not be called by a consumer
Task NotifyFaulted(TimeSpan duration, string consumerType, Exception exception)