private void Dispose(bool disposing) { if (!this.disposed) { if (!this.securityLogHandle.Equals(IntPtr.Zero)) { Win32Native.AuthzUnregisterSecurityEventSource(0, this.securityLogHandle); } if (!this.applicationLogHandle.Equals(IntPtr.Zero)) { Win32Native.DeregisterEventSource(this.applicationLogHandle); } this.disposed = true; } }