public RabbitMqBusBuilder(RabbitMqHost[] hosts, IConsumePipeSpecification consumePipeSpecification, RabbitMqReceiveSettings busSettings) : base(consumePipeSpecification, hosts) { _hosts = hosts; _busEndpointConfigurator = new RabbitMqReceiveEndpointConfigurator(_hosts[0], busSettings, ConsumePipe); }
public RabbitMqBusBuilder(RabbitMqHost[] hosts, IConsumePipeSpecification consumePipeSpecification, RabbitMqReceiveSettings busSettings) : base(consumePipeSpecification, hosts) { _hosts = hosts; _busEndpointConfigurator = new RabbitMqReceiveEndpointConfigurator(_hosts[0], busSettings, ConsumePipe); }
public RabbitMqBusBuilder(RabbitMqHost[] hosts, IConsumePipeFactory consumePipeFactory, ISendPipeFactory sendPipeFactory, IPublishPipeFactory publishPipeFactory, RabbitMqReceiveSettings busSettings) : base(consumePipeFactory, sendPipeFactory, publishPipeFactory, hosts) { _hosts = hosts; _busEndpointConfigurator = new RabbitMqReceiveEndpointConfigurator(_hosts[0], busSettings, ConsumePipe); }
public RabbitMqBusBuilder(RabbitMqHost[] hosts, IConsumePipeFactory consumePipeFactory, ISendPipeFactory sendPipeFactory, IPublishPipeFactory publishPipeFactory, RabbitMqReceiveSettings busSettings) : base(consumePipeFactory, sendPipeFactory, publishPipeFactory, hosts) { _hosts = hosts; _busEndpointConfigurator = new RabbitMqReceiveEndpointConfigurator(_hosts[0], busSettings, ConsumePipe); }
public RabbitMqBusBuilder(IEnumerable<RabbitMqHost> hosts, IConsumePipeSpecification consumePipeSpecification, RabbitMqReceiveSettings busSettings) : base(consumePipeSpecification) { _hosts = hosts.ToArray(); _busConsumePipe = CreateConsumePipe(); _busEndpointConfigurator = new RabbitMqReceiveEndpointConfigurator(_hosts[0], busSettings, _busConsumePipe); }
public RabbitMqBusBuilder(IEnumerable <RabbitMqHost> hosts, IConsumePipeSpecification consumePipeSpecification, RabbitMqReceiveSettings busSettings) : base(consumePipeSpecification) { _hosts = hosts.ToArray(); _busConsumePipe = CreateConsumePipe(); _busEndpointConfigurator = new RabbitMqReceiveEndpointConfigurator(_hosts[0], busSettings, _busConsumePipe); }
public RabbitMqBusBuilder(RabbitMqHost[] hosts, IConsumePipeFactory consumePipeFactory, ISendPipeFactory sendPipeFactory, IPublishPipeFactory publishPipeFactory, RabbitMqReceiveSettings busSettings, ModelSettings modelSettings) : base(consumePipeFactory, sendPipeFactory, publishPipeFactory, hosts) { _hosts = hosts; _modelSettings = modelSettings; _autoDeleteCacheTimeout = TimeSpan.FromMinutes(1); _sendEndpointCacheTimeout = TimeSpan.FromDays(1); _busEndpointConfigurator = new RabbitMqReceiveEndpointConfigurator(_hosts[0], busSettings, ConsumePipe); }
public RabbitMqBusBuilder(RabbitMqHost[] hosts, IConsumePipeFactory consumePipeFactory, ISendPipeFactory sendPipeFactory, IPublishPipeFactory publishPipeFactory, RabbitMqReceiveSettings busSettings, ModelSettings modelSettings) : base(consumePipeFactory, sendPipeFactory, publishPipeFactory, hosts) { _hosts = hosts; _modelSettings = modelSettings; _autoDeleteCacheTimeout = TimeSpan.FromMinutes(1); _sendEndpointCacheTimeout = TimeSpan.FromDays(1); _busEndpointConfigurator = new RabbitMqReceiveEndpointConfigurator(_hosts[0], busSettings, ConsumePipe); }
/// <summary> /// Registers a management endpoint on the bus, which can be used to control /// filters and other management control points on the bus. /// </summary> /// <param name="configurator"></param> /// <param name="host">The host where the endpoint is to be created</param> /// <param name="configure">Configure additional values of the underlying receive endpoint</param> /// <returns></returns> public static IManagementEndpointConfigurator ManagementEndpoint(this IRabbitMqBusFactoryConfigurator configurator, IRabbitMqHost host, Action <IRabbitMqReceiveEndpointConfigurator> configure = null) { if (configurator == null) { throw new ArgumentNullException(nameof(configurator)); } if (host == null) { throw new ArgumentNullException(nameof(host)); } var queueName = configurator.GetTemporaryQueueName("manage-"); var endpointConfigurator = new RabbitMqReceiveEndpointConfigurator(host, queueName); configure?.Invoke(endpointConfigurator); configurator.AddBusFactorySpecification(endpointConfigurator); var managementEndpointConfigurator = new ManagementEndpointConfigurator(endpointConfigurator); return(managementEndpointConfigurator); }
/// <summary> /// Registers a management endpoint on the bus, which can be used to control /// filters and other management control points on the bus. /// </summary> /// <param name="configurator"></param> /// <param name="host">The host where the endpoint is to be created</param> /// <param name="configure">Configure additional values of the underlying receive endpoint</param> /// <returns></returns> public static IManagementEndpointConfigurator ManagementEndpoint(this IRabbitMqBusFactoryConfigurator configurator, IRabbitMqHost host, Action<IRabbitMqReceiveEndpointConfigurator> configure = null) { if (configurator == null) throw new ArgumentNullException(nameof(configurator)); if (host == null) throw new ArgumentNullException(nameof(host)); var queueName = configurator.GetTemporaryQueueName("manage-"); var endpointConfigurator = new RabbitMqReceiveEndpointConfigurator(host, queueName); configure?.Invoke(endpointConfigurator); configurator.AddBusFactorySpecification(endpointConfigurator); var managementEndpointConfigurator = new ManagementEndpointConfigurator(endpointConfigurator); return managementEndpointConfigurator; }