Exemplo n.º 1
0
 public void Dispose()
 {
     if (!_disposed)
     {
         _disposed = true;
         for (int i = 0; i < _handles.Length; i++)
         {
             EtwNativeMethods.CloseTrace(_handles[i]);
             _logFileHandles[i].Free();
         }
     }
 }
Exemplo n.º 2
0
        public void Dispose()
        {
            if (!_disposed)
            {
                _disposed = true;
                EtwNativeMethods.CloseTrace(_handle);

                // the above causes EtwNativeMethods.OpenTrace to return sucessfuly
                // and the thread which invokes the callbacks to finish
                _thread.Join();
            }
        }