36 references to FileStream
ILCompiler.ReadyToRun (1)
IBC\MIbcProfileParser.cs (1)
88FileStream fsMibcFile = new FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.Read, bufferSize: 0x1000, useAsync: false);
ILCompiler.RyuJit (1)
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\IBC\MIbcProfileParser.cs (1)
88FileStream fsMibcFile = new FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.Read, bufferSize: 0x1000, useAsync: false);
illink (1)
Microsoft.AspNetCore.WebUtilities (2)
FileBufferingWriteStream.cs (2)
202await using var readStream = new FileStream(FileStream.Name, FileMode.Open, FileAccess.Read, FileShare.Delete | FileShare.ReadWrite, bufferSize: 1, useAsync: true); 228await using var readStream = new FileStream(FileStream.Name, FileMode.Open, FileAccess.Read, FileShare.Delete | FileShare.ReadWrite, bufferSize: 1, useAsync: true);
Microsoft.Build.Tasks.Core (1)
Unzip.cs (1)
133using (FileStream stream = new FileStream(sourceFilePath, FileMode.Open, FileAccess.Read, FileShare.Read, bufferSize: 0x1000, useAsync: false))
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\FileTextLoader.cs (1)
94=> new(this.FilePath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite | FileShare.Delete, bufferSize, useAsync);
Microsoft.Deployment.DotNet.Releases (3)
Product.cs (2)
185using FileStream stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, bufferSize: 4096, useAsync: true); 226using FileStream stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, bufferSize: 4096, useAsync: true);
ProductCollection.cs (1)
103using FileStream stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, bufferSize: 4096, useAsync: true);
Microsoft.Extensions.AI.Abstractions (4)
Contents\DataContent.cs (2)
149using FileStream fileStream = new(path, FileMode.Open, FileAccess.Read, FileShare.Read, 1, useAsync: true); 237using FileStream fileStream = new(path, FileMode.CreateNew, FileAccess.Write, FileShare.None, 1, useAsync: true);
Files\HostedFileClientExtensions.cs (2)
71using var stream = new FileStream(filePath, FileMode.Open, FileAccess.Read, FileShare.Read | FileShare.Delete, bufferSize: 4096, useAsync: true); 125using FileStream fileStream = new(
Microsoft.Extensions.AI.Abstractions.Tests (2)
parent\parent\parent\eng\MSBuild\parent\parent\src\LegacySupport\FilePolyfills\FilePolyfills.cs (2)
32using var stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, bufferSize: 4096, useAsync: true); 75using var stream = new FileStream(path, FileMode.Create, FileAccess.Write, FileShare.None, bufferSize: 4096, useAsync: true);
Microsoft.Extensions.AI.Evaluation.Reporting (4)
Formats\Html\HtmlReportWriter.cs (1)
44new FileStream(
Formats\Json\JsonReportWriter.cs (1)
37new FileStream(
Storage\DiskBasedResponseCache.cs (2)
98new FileStream( 221new FileStream(
System.Diagnostics.Process (2)
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.TryReadStatusFile.cs (1)
148using var fileStream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, bufferSize: 1, useAsync: false);
System\Diagnostics\Process.Linux.cs (1)
223using (var fs = new FileStream(cmdLineFilePath, FileMode.Open, FileAccess.Read, FileShare.Read, bufferSize: 1, useAsync: false))
System.IO.Compression.ZipFile (2)
System\IO\Compression\ZipFile.Create.cs (1)
523return new FileStream(archiveFileName, fileMode, access, fileShare, bufferSize: FileStreamBufferSize, useAsync);
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.cs (1)
158FileStream fs = new FileStream(sourceFileName, FileMode.Open, FileAccess.Read, FileShare.Read, ZipFile.FileStreamBufferSize, useAsync);
System.Net.NetworkInformation (1)
System\Net\NetworkInformation\StringParsingHelpers.Misc.cs (1)
44return new StreamReader(new FileStream(filePath, FileMode.Open, FileAccess.Read, FileShare.Read, bufferSize: 0x1000, useAsync: false));
System.Net.Requests (1)
System\Net\FileWebRequest.cs (1)
321base(path, mode, access, sharing, length, async)
System.Private.CoreLib (6)
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.TryReadStatusFile.cs (1)
148using var fileStream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, bufferSize: 1, useAsync: false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileInfo.cs (1)
152FileStream fileStream = new FileStream(NormalizedPath, FileMode.Open, FileAccess.Read, FileShare.Read, File.DefaultBufferSize, false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileStream.cs (4)
107: this(path, mode, mode == FileMode.Append ? FileAccess.Write : FileAccess.ReadWrite, DefaultShare, DefaultBufferSize, DefaultIsAsync) 112: this(path, mode, access, DefaultShare, DefaultBufferSize, DefaultIsAsync) 117: this(path, mode, access, share, DefaultBufferSize, DefaultIsAsync) 122: this(path, mode, access, share, bufferSize, DefaultIsAsync)
System.Private.Xml (3)
System\Xml\Core\XmlWriterSettings.cs (1)
348fs = new FileStream(outputFileName, FileMode.Create, FileAccess.Write, FileShare.Read, 0x1000, _useAsync);
System\Xml\XmlDownloadManager.cs (1)
32return Task.FromResult<Stream>(new FileStream(fileUri.LocalPath, FileMode.Open, FileAccess.Read, FileShare.Read, 1, useAsync: true));
System\Xml\XmlResolver.FileSystemResolver.cs (1)
48return Task.FromResult<object>(new FileStream(absoluteUri.LocalPath, FileMode.Open, FileAccess.Read, FileShare.Read, 1, useAsync: true));
System.Reflection.Metadata (1)
System\Reflection\Metadata\MetadataReader.netstandard.cs (1)
84fileStream = new FileStream(assemblyFile, FileMode.Open, FileAccess.Read, FileShare.Read, bufferSize: 1, useAsync: false);