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