public HttpReceiveEndpointFactory(HttpBusBuilder builder, IHttpHost host, BusHostCollection <HttpHost> hosts, IHttpEndpointConfiguration configuration) { _builder = builder; _host = host; _hosts = hosts; _configuration = configuration; }
public HttpReceiveEndpointBuilder(IBusBuilder busBuilder, IHttpHost host, BusHostCollection <HttpHost> hosts, IHttpEndpointConfiguration configuration) : base(busBuilder, configuration) { _host = host; _configuration = configuration; _hosts = hosts; }
public HttpReceiveEndpointSpecification(IHttpHost host, BusHostCollection <HttpHost> hosts, string pathMatch, IHttpEndpointConfiguration configuration) : base(configuration) { _host = host; _hosts = hosts; _pathMatch = pathMatch; _configuration = configuration; }
public HttpBusConfiguration(IHttpTopologyConfiguration topologyConfiguration) : base(topologyConfiguration) { _hostConfiguration = new HttpHostConfiguration(this, topologyConfiguration); _busEndpointConfiguration = CreateEndpointConfiguration(); _busObservers = new BusObservable(); }
public HttpReceiveEndpointConfiguration(IHttpHostConfiguration hostConfiguration, string pathMatch, IHttpEndpointConfiguration endpointConfiguration) : base(hostConfiguration, endpointConfiguration) { _hostConfiguration = hostConfiguration; _pathMatch = pathMatch; _endpointConfiguration = endpointConfiguration; HostAddress = hostConfiguration.HostAddress; InputAddress = new Uri(hostConfiguration.HostAddress, $"{pathMatch}"); _httpHostPipeConfigurator = new PipeConfigurator <HttpHostContext>(); }
public HttpBusBuilder(BusHostCollection <HttpHost> hosts, IHttpEndpointConfiguration configuration) : base(hosts, configuration) { _hosts = hosts; var endpointSpecification = configuration.CreateNewConfiguration(ConsumePipe); _busEndpointSpecification = new HttpReceiveEndpointSpecification(_hosts[0], _hosts, "", endpointSpecification); foreach (var host in hosts.Hosts) { var factory = new HttpReceiveEndpointFactory(this, host, hosts, configuration); host.ReceiveEndpointFactory = factory; } }
public HttpReceiveEndpointTopology(IHttpEndpointConfiguration configuration, Uri inputAddress, IMessageSerializer serializer, IHttpHost host, BusHostCollection <HttpHost> hosts) { InputAddress = inputAddress; _serializer = serializer; _host = host; _hosts = hosts; _send = configuration.Topology.Send; _publish = configuration.Topology.Publish; _consumePipe = configuration.Consume.CreatePipe(); _sendPipe = configuration.Send.CreatePipe(); _publishPipe = configuration.Publish.CreatePipe(); _sendEndpointProvider = new Lazy <ISendEndpointProvider>(CreateSendEndpointProvider); _publishEndpointProvider = new Lazy <IPublishEndpointProvider>(CreatePublishEndpointProvider); _sendTransportProvider = new Lazy <ISendTransportProvider>(CreateSendTransportProvider); }
public HttpBusFactoryConfigurator(IHttpBusConfiguration configuration, IHttpEndpointConfiguration busEndpointConfiguration) : base(configuration, busEndpointConfiguration) { _configuration = configuration; _busEndpointConfiguration = busEndpointConfiguration; }
HttpEndpointConfiguration(IHttpEndpointConfiguration parentConfiguration, IHttpTopologyConfiguration topologyConfiguration, IConsumePipe consumePipe = null) : base(parentConfiguration, topologyConfiguration, consumePipe) { _topologyConfiguration = topologyConfiguration; }
HttpEndpointConfiguration(IHttpEndpointConfiguration parentConfiguration, IHttpTopologyConfiguration topologyConfiguration) : base(parentConfiguration, topologyConfiguration) { _topologyConfiguration = topologyConfiguration; }
public IHttpReceiveEndpointConfiguration CreateReceiveEndpointConfiguration(string queueName, IHttpEndpointConfiguration endpointConfiguration) { if (_hosts.Count == 0) { throw new ConfigurationException("At least one host must be configured"); } return(new HttpReceiveEndpointConfiguration(_hosts[0], queueName, endpointConfiguration)); }
public HttpBusFactoryConfigurator(IHttpEndpointConfiguration configuration) : base(configuration) { _configuration = configuration; _hosts = new BusHostCollection <HttpHost>(); }