Table of Contents

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

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

duration TimeSpan
consumerType string

The consumer type

Returns

Task

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)

Parameters

duration TimeSpan
consumerType string
exception Exception

Returns

Task