public EventingBasicConsumerSequence(IConnection Connection, IncomingConfiguration Configuration)
        {
            _connection = Connection ??
                          throw new ArgumentNullException(nameof(Connection));
            _config = Configuration ??
                      throw new ArgumentNullException(nameof(Configuration));

            _model = Connection.CreateModel();

            InitConsumer();
        }
Exemple #2
0
 /// <summary>
 /// Creates a filetered AMQP observable of just the delivery events so that they can be handled later.
 /// </summary>
 public static IObservable <BasicDeliverEventArgs> Create(IConnection Connection, IncomingConfiguration Configuration)
 {
     return(new EventingBasicConsumerSequence(Connection, Configuration)
            .OfType <BasicDeliverEventArgs>());
 }