Exemplo n.º 1
0
        public void Run()
        {
            _dispatcher = new Dispatcher.Dispatcher(
                _configuration.BusContainer,
                _configuration.HandlerRegistry,
                _configuration.MaxRetries);

            _queueTransport = new MsmqQueueTransport(_configuration);
            _queueTransport.QueueObserver.NewMessageArrived += message =>
            {
                _dispatcher.Dispatch(message); ;
            };

            _queueTransport.Start();
        }
Exemplo n.º 2
0
        public void Run()
        {
            _dispatcher = new Dispatcher.Dispatcher(
                _configuration.BusContainer,
                _configuration.HandlerRegistry,
                _configuration.MaxRetries);

            _queueTransport = new MsmqQueueTransport(_configuration);
            _queueTransport.QueueObserver.NewMessageArrived += message =>
            {
                _dispatcher.Dispatch(message);;
            };

            _queueTransport.Start();
        }