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