mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-16 13:15:03 +00:00
Merge pull request #1130 from PepperDash/feature/systemmonitor-programinfo-update
Update systemMonitor class to append Essentials version number
This commit is contained in:
@@ -565,9 +565,9 @@ namespace PepperDash.Essentials.Core.Monitoring
|
|||||||
ProgramUnregisteredFeedback.FireUpdate();
|
ProgramUnregisteredFeedback.FireUpdate();
|
||||||
|
|
||||||
ProgramNameFeedback = new StringFeedback(() => ProgramInfo.ProgramFile);
|
ProgramNameFeedback = new StringFeedback(() => ProgramInfo.ProgramFile);
|
||||||
ProgramCompileTimeFeedback = new StringFeedback(() => ProgramInfo.CompileTime);
|
|
||||||
CrestronDataBaseVersionFeedback = new StringFeedback(() => ProgramInfo.CrestronDb);
|
CrestronDataBaseVersionFeedback = new StringFeedback(() => ProgramInfo.CrestronDb);
|
||||||
EnvironmentVersionFeedback = new StringFeedback(() => ProgramInfo.Environment);
|
EnvironmentVersionFeedback = new StringFeedback(() => ProgramInfo.Environment);
|
||||||
|
ProgramCompileTimeFeedback = new StringFeedback(() => ProgramInfo.CompileTime);
|
||||||
AggregatedProgramInfoFeedback = new StringFeedback(() => JsonConvert.SerializeObject(ProgramInfo));
|
AggregatedProgramInfoFeedback = new StringFeedback(() => JsonConvert.SerializeObject(ProgramInfo));
|
||||||
|
|
||||||
GetProgramInfo();
|
GetProgramInfo();
|
||||||
@@ -646,6 +646,13 @@ namespace PepperDash.Essentials.Core.Monitoring
|
|||||||
ProgramInfo.MinFirmwareVersion = ParseConsoleData(response, "Min Firmware Version", ": ",
|
ProgramInfo.MinFirmwareVersion = ParseConsoleData(response, "Min Firmware Version", ": ",
|
||||||
"\n");
|
"\n");
|
||||||
ProgramInfo.PlugInVersion = ParseConsoleData(response, "PlugInVersion", ": ", "\n");
|
ProgramInfo.PlugInVersion = ParseConsoleData(response, "PlugInVersion", ": ", "\n");
|
||||||
|
|
||||||
|
ProgramInfo.ProgramFile += string.Format(" {0}.{1}.{2}",
|
||||||
|
ProgramInfo.CompilerRevisionInfo.Major,
|
||||||
|
ProgramInfo.CompilerRevisionInfo.Minor,
|
||||||
|
ProgramInfo.CompilerRevisionInfo.Build);
|
||||||
|
|
||||||
|
ProgramInfo.Environment = ProgramInfo.ProgramTool;
|
||||||
}
|
}
|
||||||
else if (ProgramInfo.ProgramFile.Contains(".smw"))
|
else if (ProgramInfo.ProgramFile.Contains(".smw"))
|
||||||
{
|
{
|
||||||
@@ -736,6 +743,15 @@ namespace PepperDash.Essentials.Core.Monitoring
|
|||||||
[JsonProperty("compilerRevision")]
|
[JsonProperty("compilerRevision")]
|
||||||
public string CompilerRevision { get; set; }
|
public string CompilerRevision { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
public Version CompilerRevisionInfo
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return new Version(CompilerRevision);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[JsonProperty("compileTime")]
|
[JsonProperty("compileTime")]
|
||||||
public string CompileTime { get; set; }
|
public string CompileTime { get; set; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user