예제 #1
0
 /// <summary>
 ///     刷新资源检测
 /// </summary>
 public string End()
 {
     InMonitor = false;
     try
     {
         MonitorData pre = null;
         while (Stack.StackCount > 0)
         {
             Stack.Current.Coll(pre);
             Stack.Current.EndMessage();
             Write(Stack.Current.Title, ItemType.End);
             pre = Stack.Current;
             Stack.Pop();
         }
         Stack.Current.Coll(pre);
         Stack.FixValue.EndMessage();
         Write(Stack.FixValue.Title ?? "Monitor", ItemType.End);
         return(Texter.ToString());
     }
     catch (Exception ex)
     {
         LogRecorder.SystemTrace(LogLevel.Error, "EndMonitor", ex);
         return(null);
     }
     finally
     {
         Texter.Clear();
     }
 }