Example #1
0
        public RabbitMqConfigurator AddReceiveEndpoint(string queueName, ConsumerCollection consumerCollection)
        {
            var recvEndpointDefinition = new ReceiveEndpointDefinition
            {
                Name      = queueName,
                Consumers = consumerCollection
            };

            ReceiveEndpoints.Add(recvEndpointDefinition);
            return(this);
        }
Example #2
0
 public ReceiveEndpointConfigurator(IServiceCollection services, ConsumerCollection consumerCollection)
 {
     Services  = services;
     Consumers = consumerCollection;
 }