Пример #1
0
 public static DiagnosticModel From(DiagnosticsComponent diagnosticsComponent, SignboardHealth signboardHealth)
 {
     return new DiagnosticModel()
     {
         DiagnosticDate = DateTime.UtcNow,
         SoftwareVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString(),
         Metrics = diagnosticsComponent.GetMetrics(),
         SignboardHealth = signboardHealth
     };
 }
 public SignboardCoordinator(string macAddress)
 {
     PollingIntervalInSeconds = 10;
     diagnosticsComponent = new DiagnosticsComponent(10);
     this.macAddress = macAddress;
     SlideshowState = new SlideshowState();
 }