Esempio n. 1
0
 internal HistoryInfo GetEntry(long id)
 {
     using (History._trace.TraceMethod())
     {
         lock (this._syncRoot)
         {
             this.ReallocateBufferIfNeeded();
             HistoryInfo entry = this.CoreGetEntry(id);
             return(entry != null && !entry.Cleared ? entry.Clone() : (HistoryInfo)null);
         }
     }
 }
Esempio n. 2
0
 internal HistoryInfo GetEntry(long id)
 {
     lock (this._syncRoot)
     {
         this.ReallocateBufferIfNeeded();
         HistoryInfo info = this.CoreGetEntry(id);
         if ((info != null) && !info.Cleared)
         {
             return(info.Clone());
         }
         return(null);
     }
 }