//------------------------------------------------------ // // Public Methods // //------------------------------------------------------ /// <summary> /// Refresh TraceSources (re-read config file), creating if necessary. /// </summary> // Note: Better would be to separate enable from the Refresh method. public static void Refresh() { // Let AvTrace know that an explicit Refresh has been called. AvTrace.OnRefresh(); // Re-read the .config files System.Diagnostics.Trace.Refresh(); // Initialize any traces classes if needed if (TraceRefresh != null) { TraceRefresh(); } }