Пример #1
0
        /// <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";
        }
Пример #2
0
 public Monitoring()
 {
     element     = new MonitoringElement("Monitoring");
     Discoveries = new DiscoveryCollection(element);
     Monitors    = new DependencyMonitorCollection(element);
 }