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); }
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); }