コード例 #1
0
ファイル: Channel.cs プロジェクト: kjnilsson/RabbitMqNext
        public void BasicPublishFast(string exchange, string routingKey, bool mandatory,
                                     BasicProperties properties, ArraySegment <byte> buffer)
        {
            EnsureOpen();

            if (_confirmationKeeper != null)
            {
                throw new Exception("This channel is set up for confirmations, call BasicPublishWithConfirmation instead");
            }

            _io.__BasicPublish(exchange, routingKey, mandatory, properties, buffer);
        }
コード例 #2
0
        public void BasicPublishFast(string exchange, string routingKey, bool mandatory,
                                     BasicProperties properties, ArraySegment <byte> buffer)
        {
            if (exchange == null)
            {
                throw new ArgumentNullException("exchange");
            }
            if (routingKey == null)
            {
                throw new ArgumentNullException("routingKey");
            }

            EnsureOpen();

            if (_confirmationKeeper != null)
            {
                throw new Exception("This channel is set up for confirmations, call BasicPublishWithConfirmation instead");
            }

            // WaitIfChannelBlock();

            _io.__BasicPublish(exchange, routingKey, mandatory, properties, buffer);
        }