예제 #1
0
        public StateData GetState(ConsoleId consoleId)
        {
            if (consoleId == null)
            {
                throw new ArgumentNullException(nameof(consoleId));
            }

            return(_connection.GetStateData(consoleId.JobId));
        }
예제 #2
0
        public static bool CheckIfAtomIsFinished(this JobStorageConnection connection, string atomId)
        {
            var atomState = connection.GetStateData(atomId);

            return(atomState.Name == SucceededState.StateName);
        }
예제 #3
0
 public override StateData GetStateData(string jobId)
 {
     return(_postgreSqlConnection.GetStateData(jobId));
 }
예제 #4
0
 public override StateData GetStateData(string jobId)
 {
     return(_sqlServerConnection.GetStateData(jobId));
 }