コード例 #1
0
        public void Handle(CreateCashOutCommand command, IEventPublisher eventPublisher)
        {
            Thread.Sleep(m_ProcessingTimeout);

            Console.WriteLine(Thread.CurrentThread.ManagedThreadId + " command recived:" + command.Payload);

            eventPublisher.PublishEvent(new CashOutCreatedEvent());
        }
コード例 #2
0
 internal void Handle(CreateCashOutCommand command, IEventPublisher eventPublisher)
 {
     eventPublisher.PublishEvent(new CashOutCreatedEvent());
 }