Dispatch() 공개 메소드

public Dispatch ( Object message ) : void
message Object
리턴 void
예제 #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();
        }
예제 #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();
        }