public HostReceiveEndpointHandle ConnectReceiveEndpoint(string queueName, Action <IServiceBusReceiveEndpointConfigurator> configure = null) { var configuration = _hostConfiguration.CreateReceiveEndpointConfiguration(queueName); configure?.Invoke(configuration.Configurator); BusConfigurationResult.CompileResults(configuration.Validate()); configuration.Build(); return(_receiveEndpoints.Start(queueName)); }
public HostReceiveEndpointHandle ConnectReceiveEndpoint(string queueName, Action <IInMemoryReceiveEndpointConfigurator> configure = null) { if (ReceiveEndpointFactory == null) { throw new ConfigurationException("The receive endpoint factory was not specified"); } ReceiveEndpointFactory.CreateReceiveEndpoint(queueName, configure); return(_receiveEndpoints.Start(queueName)); }