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(); }
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(); }