public RabbitMqConfigurator AddReceiveEndpoint(string queueName, ConsumerCollection consumerCollection) { var recvEndpointDefinition = new ReceiveEndpointDefinition { Name = queueName, Consumers = consumerCollection }; ReceiveEndpoints.Add(recvEndpointDefinition); return(this); }
public ReceiveEndpointConfigurator(IServiceCollection services, ConsumerCollection consumerCollection) { Services = services; Consumers = consumerCollection; }