Exemple #1
0
 public bool IsComplete(RemoteExecutionToken token)
 {
     lock (_runningTasks)
     {
         return _runningTasks[token].HasExited;
     }
 }
Exemple #2
0
 public RemoteExecutionResult GetResult(RemoteExecutionToken token)
 {
     lock (_runningTasks)
     {
         if (_runningTasks.ContainsKey(token))
         {
             if (_runningTasks[token].HasExited)
             {
                 _runningTasks.Remove(token);
                 return RemoteExecutionResult.Success;
             }
             return RemoteExecutionResult.StillExecuting;
         }
     }
     return RemoteExecutionResult.Failure;
 }
Exemple #3
0
 public bool Equals(RemoteExecutionToken token)
 {
     return Key == token.Key;
 }