public MonitorSotiFolder(MonitorSotiFolderConfig config, List <string> listStartKnownDeviceIds, TelemetryClient tc, CancellationToken token) { this.token = token; this.tc = tc; // Import ćonfig from json monitorSotiGroupConfig = config; // If we get a null list of know devices - create an empty list. if (listStartKnownDeviceIds != null) { listKnownDeviceIds = listStartKnownDeviceIds; } else { listKnownDeviceIds = new List <string>(); } }
/* * "Group": * { * "FolderPath" : "", * "Interval" : "PT30S" * } */ public MonitorSotiFolder(string jsonConfig, List <string> listStartKnownDeviceIds, TelemetryClient tc, CancellationToken token) : this(MonitorSotiFolderConfig.GetConfigFromJsonString(jsonConfig), listStartKnownDeviceIds, tc, token) { }