예제 #1
0
 static void PublishEvent(IAggregateRoot root, IServiceBus bus)
 {
     bus.PublishAsync(root.GetUncommittedEvents());
     root.AcceptUncommittedEvents();
 }