Exemplo n.º 1
0
 public void CancelReading()
 {
     using (var eventLog = new EventLogReader("Application"))
     {
         eventLog.CancelReading();
     }
 }
 /// <summary>
 /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 /// </summary>
 public void Dispose()
 {
     log.CancelReading();
     log.Dispose();
     log = null;
 }