예제 #1
0
 public static void ComputeEntryOccurCount()
 {
     if (m_htEntryHandlerTable == null)
     {
         return;
     }
     foreach (object obj in m_htEntryHandlerTable.Values)
     {
         BugCheckEntryHandlerBase entryHandlerBase = obj as BugCheckEntryHandlerBase;
         if (entryHandlerBase == null)
         {
             continue;
         }
         entryHandlerBase.ComputeEntryOccurCount();
     }
 }
예제 #2
0
 public static void Dispose()
 {
     if (m_htEntryHandlerTable == null || m_htEntryHandlerTable.Count <= 0)
     {
         return;
     }
     foreach (object obj in m_htEntryHandlerTable.Values)
     {
         BugCheckEntryHandlerBase entryHandlerBase = obj as BugCheckEntryHandlerBase;
         if (entryHandlerBase == null)
         {
             continue;
         }
         entryHandlerBase.ClearEntry();
     }
     m_htEntryHandlerTable.Clear();
 }
예제 #3
0
 public static BugCheckEntry GetEntry(string szEntryID)
 {
     if (m_htEntryHandlerTable == null)
     {
         return(null);
     }
     foreach (object obj in m_htEntryHandlerTable.Values)
     {
         BugCheckEntryHandlerBase entryHandlerBase = obj as BugCheckEntryHandlerBase;
         if (entryHandlerBase == null)
         {
             continue;
         }
         BugCheckEntry qcEntry = entryHandlerBase.GetEntry(szEntryID);
         if (qcEntry != null)
         {
             return(qcEntry);
         }
     }
     return(null);
 }