예제 #1
0
        public void SetUp()
        {
            _fakeEventConsumer           = new Consumer <FakeEvent>(Semaphore);
            _consumerRegistrar           = ConsumerRegistrarFactory.Create(QueueName, _fakeEventConsumer);
            _fakeEventFaultConsumer      = new Consumer <Fault <FakeEvent> >(Semaphore);
            _faultEventConsumerRegistrar = ConsumerRegistrarFactory.Create(ErrorQueueName, _fakeEventFaultConsumer);

            CreateBus();
            _busControl.Start();
        }
        public void SetUp()
        {
            _fakeCommandConsumer       = new Consumer <FakeCommand>(Semaphore);
            _fakeCommand2Consumer      = new Consumer <FakeCommand2>(Semaphore2);
            _consumerRegistrar         = ConsumerRegistrarFactory.Create(QueueName, _fakeCommandConsumer, _fakeCommand2Consumer);
            _fakeCommandFaultConsumer  = new Consumer <Fault <FakeCommand> >(Semaphore);
            _fakeCommand2FaultConsumer = new Consumer <Fault <FakeCommand2> >(Semaphore2);
            _faultConsumerRegistrar    = ConsumerRegistrarFactory.Create(ErrorQueueName, _fakeCommandFaultConsumer, _fakeCommand2FaultConsumer);

            CreateBus();
            _busControl.Start();
        }