private Task FlushEvents(T source, CancellationToken cancellationToken)
 => _eventPublisher.FlushPendingEvents(source.Id, cancellationToken);
 private Task FlushEvents(T source, CancellationToken cancellationToken)
 {
     return(_eventPublisher
            .FlushPendingEvents <T>(source.Id, cancellationToken));
 }