Exemplo n.º 1
0
 public void Publish(FCDProcessed @event)
 {
     Console.WriteLine($"Service: {nameof(FcdService)} published event {@event}");
     MsgBus.Publish(@event);
 }
Exemplo n.º 2
0
 public void When(FCDProcessed @event)
 {
     Task.Delay(20).Wait();
     Console.WriteLine($"Service: {nameof(FeService)} received event {@event}");
     Publish(new FEProcessed());
 }