コード例 #1
0
        // CONSTRUCTORS
        public Producer(IConnectionFactory connectionFactory, Settings settings)
        {
            this.connectionLine = new ConnectionLine(connectionFactory, settings);

            this.publicationAddress = new PublicationAddress(
                settings.ExchangeType,
                settings.ExchangeName,
                settings.RoutingKey);
        }
コード例 #2
0
        // CONSTRUCTORS
        public Consumer(IConnectionFactory connectionFactory, Settings settings)
        {
            this.connectionLine = new ConnectionLine(connectionFactory, settings);

            this.subscription = new Subscription(connectionLine.Channel, settings.QueueName, autoAck: false);
        }