Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the PocoPublisher class
 /// </summary>
 /// <param name="exchange">exchange to publish to</param>
 /// <param name="channel">rabbitmq connection channel</param>
 /// <param name="protocol">protocol to encode the message</param>
 /// <param name="logger">injected logger</param>
 public PocoPublisher(string exchange, IPublishManager channel, ISingleMessageProtocol <TMessage> protocol, ILogger logger)
     : base(exchange, channel, protocol, logger)
 {
     Contract.Requires <ArgumentNullException>(exchange != null, "exchange is null");
     Contract.Requires <ArgumentNullException>(channel != null, "channel is null");
     Contract.Requires <ArgumentNullException>(protocol != null, "protocol is null");
     Contract.Requires <ArgumentNullException>(logger != null, "logger is null");
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the PocoRetriever class
 /// </summary>
 /// <param name="queue">name of the queue to retrieve from</param>
 /// <param name="useNoAck"> flag to indicate whether or not 'NOACK' is enabled</param>
 /// <param name="channel">RabbitMQ connection channel</param>
 /// <param name="protocol">protocol to decode messages</param>
 /// <param name="logger">injected logger</param>
 public PocoRetriever(string queue, bool useNoAck, IMessageRetrievalManager channel, ISingleMessageProtocol <TMessage> protocol, ILogger logger)
     : base(queue, useNoAck, channel, protocol, logger)
 {
     Contract.Requires <ArgumentNullException>(queue != null, "queue is null");
     Contract.Requires <ArgumentNullException>(channel != null, "channel is null");
     Contract.Requires <ArgumentNullException>(protocol != null, "protocol is null");
     Contract.Requires <ArgumentNullException>(logger != null, "logger is null");
 }