private Task FlushCommandsIfProcessManagerExists( T processManager, CancellationToken cancellationToken) { return(processManager == null ? Task.FromResult(true) : _commandPublisher.FlushCommands(processManager.Id, cancellationToken)); }
private Task FlushCommandsIfProcessManagerExists( T processManager, CancellationToken cancellationToken) { return(processManager == null ? Task.FromResult(true) : _commandPublisher.FlushCommands(processManager.Id, cancellationToken)); }