public ChannelProvider(ConnectionFactory connectionFactory, IRoutingTopology routingTopology, bool usePublisherConfirms) { connection = new Lazy <IConnection>(() => connectionFactory.CreatePublishConnection()); this.routingTopology = routingTopology; this.usePublisherConfirms = usePublisherConfirms; channels = new ConcurrentQueue <ConfirmsAwareChannel>(); }
public ChannelProvider(ConnectionFactory connectionFactory, IRoutingTopology routingTopology, bool usePublisherConfirms, bool allEndpointsSupportDelayedDelivery) { connection = new Lazy <IConnection>(() => connectionFactory.CreatePublishConnection()); this.routingTopology = routingTopology; this.usePublisherConfirms = usePublisherConfirms; this.allEndpointsSupportDelayedDelivery = allEndpointsSupportDelayedDelivery; channels = new ConcurrentQueue <ConfirmsAwareChannel>(); }