Example #1
0
 public Task <TResult> Handle(TCommand request, CancellationToken cancellationToken)
 => transactionScopeHandler.RunInTransactionScope(() => requestHandler.Handle(request, cancellationToken));
Example #2
0
 public Task Handle(TNotification notification, CancellationToken cancellationToken)
 => transactionScopeHandler.RunInTransactionScope(() => notificationHandler.Handle(notification, cancellationToken));