Ejemplo 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();
        }
Ejemplo 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();
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.Object"/> class.
 /// </summary>
 public InvocationContext(Dispatcher dispatcher, Object handler, Object message)
 {
     _dispatcher = dispatcher;
     _handler = handler;
     _message = message;
 }