public async Task Handle(NotificationAdapter <T> notification, CancellationToken cancellationToken)
 {
     await Handle(notification.Notification, cancellationToken);
 }
Exemplo n.º 2
0
 public async Task Publish <TNotification>(TNotification notification, CancellationToken cancellationToken = default)
     where TNotification : IDomainEvent
 {
     var notification2 = new NotificationAdapter <TNotification>(notification);
     await mediator.Publish(notification2, cancellationToken);
 }