3 writes to _handle
System.Core (3)
System\IO\LogStream.cs (3)
128_handle = UnsafeNativeMethods.SafeCreateFile(filePath, fAccess, share, secAttrs, mode, flagsAndAttributes, UnsafeNativeMethods.NULL); 349_handle = null; 407_handle = handle;
17 references to _handle
System.Core (17)
System\IO\LogStream.cs (17)
131if (_handle.IsInvalid) { 160Debug.Assert(UnsafeNativeMethods.GetFileType(_handle) == UnsafeNativeMethods.FILE_TYPE_DISK, "did someone accidentally removed the device type check from SafeCreateFile P/Invoke wrapper?"); 242EnforceRetentionPolicy(_handle, streamPos); 249if (_handle.IsClosed) __Error.FileNotOpen(); 277r = UnsafeNativeMethods.WriteFile(_handle, p + offset, count, out numBytesWritten, overlapped); 291_handle.SetHandleAsInvalid(); 306Debug.Assert(!_handle.IsClosed, "!_handle.IsClosed"); 311ret = UnsafeNativeMethods.SetFilePointer(_handle, offset, origin, out hr); 317_handle.SetHandleAsInvalid(); 335if (_handle == null || _handle.IsClosed) { 346if (_handle != null && !_handle.IsClosed) 347_handle.Dispose(); 360if (_handle != null) { 372if ((lastPos >= _maxFileSize) && (handle == _handle)){ 374if ((handle != _handle) || (lastPos < _maxFileSize))