public void ReceiveEndpoint(IRabbitMqHost host, string queueName, Action <IRabbitMqReceiveEndpointConfigurator> configure) { if (host == null) { throw new EndpointNotFoundException("The host address specified was not configured."); } var specification = new RabbitMqReceiveEndpointSpecification(host, queueName); AddReceiveEndpointSpecification(specification); configure?.Invoke(specification); }
public void ReceiveEndpoint(IRabbitMqHost host, string queueName, Action <IRabbitMqReceiveEndpointConfigurator> configure) { if (host == null) { throw new EndpointNotFoundException("The host address specified was not configured."); } var endpointTopologySpecification = _configuration.CreateNewConfiguration(); var specification = new RabbitMqReceiveEndpointSpecification(host, endpointTopologySpecification, queueName); specification.ConnectConsumerConfigurationObserver(this); specification.ConnectSagaConfigurationObserver(this); AddReceiveEndpointSpecification(specification); configure?.Invoke(specification); }