public async Task PublishDomainNotificationAsync <TAggregateRootId>(IDomainNotification <TAggregateRootId> notification, CancellationToken token = default) { notification.WithEventingContext(_domainEvent); await _domainNotificationPublisher.PublishAsync(notification, token); }
public void PublishDomainNotification <TAggregateRootId>(IDomainNotification <TAggregateRootId> notification) { notification.WithEventingContext(_domainEvent); _domainNotificationPublisher.Publish(notification); }
public void PublishDomainNotification(IDomainNotification notification) { notification.WithEventingContext(_domainEvent); _domainNotificationPublisher.Publish(notification); }