Exemplo n.º 1
0
 protected static IEnumerable <T> AllRaisedEvents <T>() where T : DomainEvent
 {
     return(UncommittedEvents.OfType <T>());
 }
Exemplo n.º 2
0
 protected static TEvent LastRaisedEventOfType <TEvent>() where TEvent : class
 {
     return(UncommittedEvents.OfType <TEvent>().LastOrDefault());
 }