feat: now pulls platform information and stores it in the database

This commit is contained in:
Michael Green
2023-04-09 01:19:50 +10:00
parent 1ad840750e
commit b36b3a8f57
14 changed files with 686 additions and 15 deletions

View File

@@ -23,7 +23,7 @@ namespace gaseous_server
private DateTime _LastFinishTime = DateTime.UtcNow;
private int _Interval = 0;
private string _LastResult = "";
private Exception? _LastError = null;
private string? _LastError = null;
private bool _ForceExecute = false;
public QueueItemType ItemType => _ItemType;
@@ -38,7 +38,7 @@ namespace gaseous_server
}
public int Interval => _Interval;
public string LastResult => _LastResult;
public Exception? LastError => _LastError;
public string? LastError => _LastError;
public bool Force => _ForceExecute;
public void Execute()
@@ -67,6 +67,7 @@ namespace gaseous_server
case QueueItemType.TitleIngestor:
Logging.Log(Logging.LogType.Information, "Timered Event", "Starting Title Ingestor");
Classes.ImportGames importGames = new Classes.ImportGames(Config.LibraryConfiguration.LibraryImportDirectory);
break;
}
}
@@ -74,7 +75,7 @@ namespace gaseous_server
{
Logging.Log(Logging.LogType.Warning, "Timered Event", "An error occurred", ex);
_LastResult = "";
_LastError = ex;
_LastError = ex.ToString();
}
_ForceExecute = false;