/// <summary> /// Called when [configuration change]. /// </summary> private void OnConfigChange() { try { lock (this) { ActiveStates states = new ActiveStates(); states.RI = RILogManager.Get(InstanceName) ?? RILogManager.Default; states.DisplayLevel = String.Compare(DisplayLevel.ToLower().Trim(), "true", false) == 0; states.DisplayLocation = String.Compare(DisplayLocation.ToLower().Trim(), "true", false) == 0; CurrentActiveStates = states; } } catch (Exception ex) { RIExceptionManager.Publish(ex, "Failed during: LogAppender.OnConfigChange()"); } }
//--------------------------------------------------------------------- private void OnConfigChange() { try { lock (this) { if (!FOwnsRI) { String instanceName = ReflectInsightConfig.Settings.GetExtensionAttribute("logLinqToSql", "instance", "logLinqToSql"); FReflectInsight = RILogManager.Get(instanceName) ?? RILogManager.Default; FRequestObjectManager.RequestDetachLifeSpan = GetRequestObjectLifeSpan(); } } } catch (Exception ex) { RIExceptionManager.Publish(ex, "Failed during: LogLinqToSql.OnConfigChange()"); } }