Example #1
0
 /// <summary>
 ///     Construct a <c>RabbitMQMediatRHandler</c> for the specified consumer
 /// </summary>
 /// <param name="consumer">The consumer who owns this handler</param>
 /// <param name="container">The AutoFac container for registering MediatR handlers</param>
 /// <param name="handlerAssembly">The assembly containing MediatR handlers</param>
 public RabbitMQMediatRHandler(RabbitMQConsumer consumer, IContainer container, Assembly handlerAssembly)
 {
     _connection      = consumer.Channel.Connection;
     Consumer         = consumer;
     _container       = container;
     _handlerAssembly = handlerAssembly;
 }
Example #2
0
 /// <summary>
 ///     Instantiate the default handler for the specified consumer
 /// </summary>
 /// <param name="consumer"></param>
 public RabbitMQDefaultHandler(RabbitMQConsumer consumer)
 {
     Consumer = consumer;
 }