Beispiel #1
0
        public void Setup()
        {
            Connection          = Helpers.CreateConnection();
            Model               = Connection.CreateModel();
            InitialMessageValue = new object();
            message             = InitialMessageValue;
            completionSemaphore = new ManualResetEvent(false);
            errorSemaphore      = new ManualResetEvent(false);
            exception           = null;

            Consumer = new QueueingBasicConsumer(Model);
            Model.BasicConsume(Model.QueueDeclare(), true, Consumer);

            Consume.ToObservable(Scheduler.TaskPool).Subscribe(this);
        }