Interface IConsumerFactory<TConsumer>
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
Maps an instance of a consumer to one or more Consume methods for the specified message type The whole purpose for this interface is to allow the creator of the consumer to manage the lifecycle of the consumer, along with anything else that needs to be managed by the factory, container, etc.
public interface IConsumerFactory<out TConsumer> : IProbeSite where TConsumer : class
Type Parameters
TConsumer
The Consumer type
- Inherited Members
Methods
Send<T>(ConsumeContext<T>, IPipe<ConsumerConsumeContext<TConsumer, T>>)
Task Send<T>(ConsumeContext<T> context, IPipe<ConsumerConsumeContext<out TConsumer, T>> next) where T : class
Parameters
context
ConsumeContext<T>next
IPipe<ConsumerConsumeContext<TConsumer, T>>
Returns
Type Parameters
T