mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-08-31 19:08:29 +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:
commit
552a315ac0
1 changed files with 24 additions and 8 deletions
|
|
@ -565,9 +565,9 @@ namespace PepperDash.Essentials.Core.Monitoring
|
|||
ProgramUnregisteredFeedback.FireUpdate();
|
||||
|
||||
ProgramNameFeedback = new StringFeedback(() => ProgramInfo.ProgramFile);
|
||||
ProgramCompileTimeFeedback = new StringFeedback(() => ProgramInfo.CompileTime);
|
||||
CrestronDataBaseVersionFeedback = new StringFeedback(() => ProgramInfo.CrestronDb);
|
||||
EnvironmentVersionFeedback = new StringFeedback(() => ProgramInfo.Environment);
|
||||
ProgramCompileTimeFeedback = new StringFeedback(() => ProgramInfo.CompileTime);
|
||||
AggregatedProgramInfoFeedback = new StringFeedback(() => JsonConvert.SerializeObject(ProgramInfo));
|
||||
|
||||
GetProgramInfo();
|
||||
|
|
@ -646,6 +646,13 @@ namespace PepperDash.Essentials.Core.Monitoring
|
|||
ProgramInfo.MinFirmwareVersion = ParseConsoleData(response, "Min Firmware Version", ": ",
|
||||
"\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"))
|
||||
{
|
||||
|
|
@ -736,6 +743,15 @@ namespace PepperDash.Essentials.Core.Monitoring
|
|||
[JsonProperty("compilerRevision")]
|
||||
public string CompilerRevision { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public Version CompilerRevisionInfo
|
||||
{
|
||||
get
|
||||
{
|
||||
return new Version(CompilerRevision);
|
||||
}
|
||||
}
|
||||
|
||||
[JsonProperty("compileTime")]
|
||||
public string CompileTime { get; set; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue