Пример #1
0
 public static AggregateAndNotifications <TAggregate> OrNotifications <TAggregate>(this TAggregate aggregate, NotificationList notifications)
     where TAggregate : IAggregateRoot
 {
     return(new AggregateAndNotifications <TAggregate>
     {
         Aggregate = aggregate,
         Notifications = notifications
     });
 }
Пример #2
0
 public static NotificationList AddNotificationsTo <TAggregate>(
     this AggregateResult <TAggregate> sourceResult, NotificationList targetList)
     where TAggregate : IAggregateRoot
 {
     return(targetList.AddNotifications(sourceResult.Notifications));
 }