13 references to OpenHandle
System.IO.MemoryMappedFiles (2)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (1)
127
SafeFileHandle fileHandle = File.
OpenHandle
(path, mode, GetFileAccess(access), FileShare.Read, FileOptions.None);
System\IO\MemoryMappedFiles\MemoryMappedFile.Unix.cs (1)
324
SafeFileHandle fileHandle = File.
OpenHandle
(path, FileMode.CreateNew, TranslateProtectionsToFileAccess(protections), share);
System.Net.Sockets (2)
System\Net\Sockets\Socket.cs (1)
3986
private static SafeFileHandle? OpenFileHandle(string? name) => string.IsNullOrEmpty(name) ? null : File.
OpenHandle
(name, FileMode.Open, FileAccess.Read);
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (1)
259
fileHandles[i] = File.
OpenHandle
(path, FileMode.Open, FileAccess.Read, FileShare.Read, FileOptions.Asynchronous);
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (8)
699
using (SafeFileHandle sfh =
OpenHandle
(path, FileMode.Open, FileAccess.Read, FileShare.Read, options))
763
using SafeFileHandle sfh =
OpenHandle
(path, FileMode.Create, FileAccess.Write, FileShare.Read);
813
using SafeFileHandle fileHandle =
OpenHandle
(path, FileMode.Append, FileAccess.Write, FileShare.Read);
858
using SafeFileHandle fileHandle =
OpenHandle
(path, FileMode.Append, FileAccess.Write, FileShare.Read, FileOptions.Asynchronous);
1178
SafeFileHandle sfh =
OpenHandle
(path, FileMode.Open, FileAccess.Read, FileShare.Read, options);
1287
using SafeFileHandle sfh =
OpenHandle
(path, FileMode.Create, FileAccess.Write, FileShare.Read, FileOptions.Asynchronous);
1510
using SafeFileHandle fileHandle =
OpenHandle
(path, mode, FileAccess.Write, FileShare.Read, FileOptions.None, GetPreallocationSize(mode, contents, encoding, preambleSize));
1566
using SafeFileHandle fileHandle =
OpenHandle
(path, mode, FileAccess.Write, FileShare.Read, FileOptions.Asynchronous, GetPreallocationSize(mode, contents.Span, encoding, preambleSize));
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (1)
375
using (SafeFileHandle sfh = File.
OpenHandle
(filePath, FileMode.Open, FileAccess.Read, FileShare.Read))