public void Handle(CreateCashOutCommand command, IEventPublisher eventPublisher) { Thread.Sleep(m_ProcessingTimeout); Console.WriteLine(Thread.CurrentThread.ManagedThreadId + " command recived:" + command.Payload); eventPublisher.PublishEvent(new CashOutCreatedEvent()); }
internal void Handle(CreateCashOutCommand command, IEventPublisher eventPublisher) { eventPublisher.PublishEvent(new CashOutCreatedEvent()); }