Table of Contents

Interface IConsumerConfigurator<TConsumer>

Namespace
MassTransit
Assembly
MassTransit.Abstractions.dll
public interface IConsumerConfigurator<TConsumer> : IPipeConfigurator<ConsumerConsumeContext<TConsumer>>, IConsumerConfigurator, IConsumeConfigurator, IConsumerConfigurationObserverConnector, IOptionsSet where TConsumer : class

Type Parameters

TConsumer
Inherited Members
Extension Methods

Methods

ConsumerMessage<T>(Action<IConsumerMessageConfigurator<TConsumer, T>>?)

Add middleware to the consumer pipeline, for the specified message type, which is invoked after the consumer factory.

void ConsumerMessage<T>(Action<IConsumerMessageConfigurator<TConsumer, T>>? configure = null) where T : class

Parameters

configure Action<IConsumerMessageConfigurator<TConsumer, T>>

The callback to configure the message pipeline

Type Parameters

T

The message type

Message<T>(Action<IConsumerMessageConfigurator<T>>?)

Add middleware to the message pipeline, which is invoked prior to the consumer factory.

void Message<T>(Action<IConsumerMessageConfigurator<T>>? configure = null) where T : class

Parameters

configure Action<IConsumerMessageConfigurator<T>>

The callback to configure the message pipeline

Type Parameters

T

The message type