public void ReceiveEndpoint(IHttpHost host, string pathMatch, Action <IHttpReceiveEndpointConfigurator> configure = null) { if (host == null) { throw new ArgumentNullException(nameof(host)); } var specification = new HttpReceiveEndpointSpecification(host, pathMatch); configure?.Invoke(specification); AddBusFactorySpecification(specification); }
public void ReceiveEndpoint(IHttpHost host, string pathMatch, Action <IHttpReceiveEndpointConfigurator> configure = null) { if (host == null) { throw new ArgumentNullException(nameof(host)); } var endpointSpecification = _configuration.CreateNewConfiguration(); var specification = new HttpReceiveEndpointSpecification(host, _hosts, pathMatch, endpointSpecification); specification.ConnectConsumerConfigurationObserver(this); specification.ConnectSagaConfigurationObserver(this); configure?.Invoke(specification); AddBusFactorySpecification(specification); }