Esempio n. 1
0
 private void disposeResources()
 {
     disposeConfigFileWatcher();
     traceAction($"{nameof(LogFileFactory)} Is Being Reset ...");
     TraceSources.RemoveSelector(this);
     lock (SyncLock) {
         logFileListener?.Dispose();
         logFileListener = null;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 关闭并释放日志监听器
 /// </summary>
 public static void CloseLogListener()
 {
     Info("关闭日志记录器 ...");
     LogListener?.Close();
     LogListener?.Dispose();
 }