コード例 #1
0
        public ChannelProvider(ConnectionFactory connectionFactory, IRoutingTopology routingTopology, bool usePublisherConfirms)
        {
            connection = new Lazy <IConnection>(() => connectionFactory.CreatePublishConnection());

            this.routingTopology      = routingTopology;
            this.usePublisherConfirms = usePublisherConfirms;

            channels = new ConcurrentQueue <ConfirmsAwareChannel>();
        }
コード例 #2
0
        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>();
        }