/// <summary> /// Constructeur. /// </summary> private Analytics() { _counterDefinitionRepository = new CounterDefinitionRepository(); this.CreateCounter(SR.CounterTime, ElapsedTime, 1000, 10 * 1000, 5); ModuleSection section = (ModuleSection)ConfigurationManager.GetSection(ModuleSection.ModuleSectionName); if (section == null) { _monitoringElement = new MonitoringElement(); } else { _monitoringElement = section.Monitoring; } _resetEvent = new ManualResetEvent(false); _storageThread = new Thread(new ThreadStart(StorageThreadMain)); _storageThread.Name = "MonitoringThread"; }
public Monitoring() { element = new MonitoringElement("Monitoring"); Discoveries = new DiscoveryCollection(element); Monitors = new DependencyMonitorCollection(element); }