Exemplo n.º 1
0
 private HealthMonitoringSectionHelper()
 {
     try
     {
         this._section = RuntimeConfig.GetAppConfig().HealthMonitoring;
     }
     catch (Exception exception)
     {
         if (HttpRuntime.InitializationException == null)
         {
             HttpRuntime.InitializationException = exception;
         }
         this._section = RuntimeConfig.GetAppLKGConfig().HealthMonitoring;
         if (this._section == null)
         {
             throw;
         }
     }
     this._enabled = this._section.Enabled;
     if (this._enabled)
     {
         this.BasicSanityCheck();
         this._ruleInfos = new ArrayList();
         this._customEvaluatorInstances          = new Hashtable();
         this._providerInstances                 = new ProviderInstances(this._section);
         this._cachedMatchedRulesForCustomEvents = new Hashtable(new WebBaseEventKeyComparer());
         _cachedMatchedRules = new ArrayList[WebEventCodes.GetEventArrayDimensionSize(0), WebEventCodes.GetEventArrayDimensionSize(1)];
         this.BuildRuleInfos();
         this._providerInstances.CleanupUninitProviders();
     }
 }
 private HealthMonitoringSectionHelper()
 {
     try
     {
         this._section = RuntimeConfig.GetAppConfig().HealthMonitoring;
     }
     catch (Exception exception)
     {
         if (HttpRuntime.InitializationException == null)
         {
             HttpRuntime.InitializationException = exception;
         }
         this._section = RuntimeConfig.GetAppLKGConfig().HealthMonitoring;
         if (this._section == null)
         {
             throw;
         }
     }
     this._enabled = this._section.Enabled;
     if (this._enabled)
     {
         this.BasicSanityCheck();
         this._ruleInfos = new ArrayList();
         this._customEvaluatorInstances = new Hashtable();
         this._providerInstances = new ProviderInstances(this._section);
         this._cachedMatchedRulesForCustomEvents = new Hashtable(new WebBaseEventKeyComparer());
         _cachedMatchedRules = new ArrayList[WebEventCodes.GetEventArrayDimensionSize(0), WebEventCodes.GetEventArrayDimensionSize(1)];
         this.BuildRuleInfos();
         this._providerInstances.CleanupUninitProviders();
     }
 }