Пример #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));
 }