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

            ReceiveEndpoints.Add(recvEndpointDefinition);
            return(this);
        }
Esempio n. 2
0
        public RabbitMqConfigurator AddReceiveEndpoint(string queueName,
                                                       Action <ConsumerCollection> consumerConfigurationAction)
        {
            var recvEndpointDefinition = new ReceiveEndpointDefinition
            {
                Name = queueName
            };

            ReceiveEndpoints.Add(recvEndpointDefinition);

            consumerConfigurationAction.Invoke(recvEndpointDefinition.Consumers);

            return(this);
        }
Esempio n. 3
0
 public RabbitMqConfigurator AddReceiveEndpoint(ReceiveEndpointDefinition endpointDefinition)
 {
     ReceiveEndpoints.Add(endpointDefinition);
     return(this);
 }