22 references to IsClosed
Microsoft.AspNetCore.Http.Connections.Tests (2)
HttpConnectionDispatcherTests.cs (2)
1966
Assert.False(windowsIdentity.AccessToken.
IsClosed
);
1971
Assert.True(((WindowsIdentity)connection.User.Identity).AccessToken.
IsClosed
);
PresentationCore (4)
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (2)
409
if (eventHandle.IsInvalid || eventHandle.
IsClosed
)
472
if (_eventHandle != null && !_eventHandle.IsInvalid && !_eventHandle.
IsClosed
)
MS\Win32\UnsafeNativeMethodsTablet.cs (2)
84
return
IsClosed
|| handle == IntPtr.Zero;
119
return
IsClosed
|| handle == IntPtr.Zero;
ReachFramework (2)
MS\Internal\Printing\Configuration\SafeWinSpoolPrinterHandle.cs (1)
24
if (!base.
IsClosed
)
PrintConfig\PTProvider.cs (1)
58
return (
IsClosed
|| (handle == IntPtr.Zero));
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.Linux.cs (1)
293
Debug.Assert(inotifyHandle != null && !inotifyHandle.IsInvalid && !inotifyHandle.
IsClosed
);
System.Private.CoreLib (12)
src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (2)
58
internal bool CanSeek => !
IsClosed
&& GetCanSeek();
504
Debug.Assert(!
IsClosed
);
src\libraries\System.Private.CoreLib\src\System\IO\FileStream.cs (1)
81
else if (handle.
IsClosed
)
src\libraries\System.Private.CoreLib\src\System\IO\RandomAccess.cs (1)
297
if (handle.
IsClosed
)
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\OSFileStreamStrategy.cs (7)
73
public sealed override bool CanRead => !_fileHandle.
IsClosed
&& (_access & FileAccess.Read) != 0;
75
public sealed override bool CanWrite => !_fileHandle.
IsClosed
&& (_access & FileAccess.Write) != 0;
93
internal sealed override bool IsClosed => _fileHandle.
IsClosed
;
114
if (_fileHandle != null && !_fileHandle.
IsClosed
)
126
if (disposing && _fileHandle != null && !_fileHandle.
IsClosed
)
211
if (_fileHandle.
IsClosed
)
235
if (_fileHandle.
IsClosed
)
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolBoundHandle.Unix.cs (1)
78
if (handle.
IsClosed
|| handle.IsInvalid)
System.Windows.Forms.Primitives (1)
Microsoft\Win32\SafeHandles\CoTaskMemSafeHandle.cs (1)
14
public override bool IsInvalid =>
IsClosed
|| handle == IntPtr.Zero;