54 references to Read
AnalyzeCiFailure (1)
TestResultArchiveExtractor.cs (1)
74using var archive = new ZipArchive(file, ZipArchiveMode.Read, leaveOpen: true);
Aspire.Dashboard (1)
Model\TelemetryImportService.cs (1)
105using var archive = new ZipArchive(stream, ZipArchiveMode.Read, leaveOpen: true);
Aspire.Dashboard.Tests (6)
Model\TelemetryExportServiceTests.cs (6)
707using var archive = new ZipArchive(memoryStream, ZipArchiveMode.Read); 779using var archive = new ZipArchive(zipStream, ZipArchiveMode.Read); 827using var archive = new ZipArchive(zipStream, ZipArchiveMode.Read); 878using var archive = new ZipArchive(zipStream, ZipArchiveMode.Read); 940using var archive = new ZipArchive(zipStream, ZipArchiveMode.Read); 994using var archive = new ZipArchive(zipStream, ZipArchiveMode.Read);
ILCompiler.ReadyToRun (1)
IBC\MIbcProfileParser.cs (1)
104using (var zipFile = new ZipArchive(fsMibcFile, ZipArchiveMode.Read, leaveOpen: false, entryNameEncoding: null))
ILCompiler.RyuJit (1)
parent\ILCompiler.ReadyToRun\IBC\MIbcProfileParser.cs (1)
104using (var zipFile = new ZipArchive(fsMibcFile, ZipArchiveMode.Read, leaveOpen: false, entryNameEncoding: null))
Microsoft.Arcade.Common (1)
NupkgInfoFactory.cs (1)
32ZipArchive zipArchive = new(stream, ZipArchiveMode.Read);
Microsoft.Build (1)
Logging\BinaryLogger\BuildEventArgsReader.cs (1)
526using var zipArchive = new ZipArchive(embeddedStream, ZipArchiveMode.Read);
Microsoft.Build.Tasks.Core (1)
Unzip.cs (1)
138using (ZipArchive zipArchive = new ZipArchive(stream, ZipArchiveMode.Read, leaveOpen: false))
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
OptProf\GenerateTrainingInputFiles.cs (1)
102using (var archive = new ZipArchive(File.Open(vsixPath, FileMode.Open), ZipArchiveMode.Read))
Microsoft.ML.Core (1)
Data\Repository.cs (1)
466_archive = new ZipArchive(stream, ZipArchiveMode.Read, true);
Microsoft.ML.TestFramework (1)
DataPipe\TestDataPipe.cs (1)
1058using (var zip = new ZipArchive(strm, ZipArchiveMode.Read))
Microsoft.TemplateEngine.Edge (2)
Mount\Archive\ZipFileMountPointFactory.cs (2)
43archive = new ZipArchive(environmentSettings.Host.FileSystem.OpenRead(uri.LocalPath), ZipArchiveMode.Read, false); 63archive = new ZipArchive(file.OpenRead(), ZipArchiveMode.Read, false);
NuGet.Packaging (6)
PackageArchiveReader.cs (5)
82: this(new ZipArchive(stream, ZipArchiveMode.Read, leaveStreamOpen), DefaultFrameworkNameProvider.Instance, DefaultCompatibilityProvider.Instance) 95: this(new ZipArchive(stream, ZipArchiveMode.Read, leaveStreamOpen), frameworkProvider, compatibilityProvider) 139_zipArchive = new ZipArchive(stream, ZipArchiveMode.Read); 454using (var zip = new ZipArchive(ZipReadStream, ZipArchiveMode.Read, leaveOpen: true)) 595using (var zip = new ZipArchive(ZipReadStream, ZipArchiveMode.Read, leaveOpen: true))
Signing\Package\SignedPackageArchive.cs (1)
27: base(new ZipArchive(packageReadStream, ZipArchiveMode.Read, leaveOpen: true), DefaultFrameworkNameProvider.Instance, DefaultCompatibilityProvider.Instance)
System.IO.Compression (15)
System\IO\Compression\ZipArchive.Async.cs (2)
94case ZipArchiveMode.Read: 148case ZipArchiveMode.Read:
System\IO\Compression\ZipArchive.cs (5)
49public ZipArchive(Stream stream) : this(stream, ZipArchiveMode.Read, leaveOpen: false, entryNameEncoding: null) { } 150case ZipArchiveMode.Read: 347case ZipArchiveMode.Read: 486if (_mode == ZipArchiveMode.Read) 1083case ZipArchiveMode.Read:
System\IO\Compression\ZipArchiveEntry.Async.cs (3)
38/// <item><description><see cref="ZipArchiveMode.Read"/>: Only <see cref="FileAccess.Read"/> is allowed.</description></item> 66/// <item><description><see cref="ZipArchiveMode.Read"/>: Only <see cref="FileAccess.Read"/> is allowed.</description></item> 122case ZipArchiveMode.Read:
System\IO\Compression\ZipArchiveEntry.cs (5)
383if (_archive.Mode == ZipArchiveMode.Read) 511/// <item><description><see cref="ZipArchiveMode.Read"/>: Only <see cref="FileAccess.Read"/> is allowed.</description></item> 543ZipArchiveMode.Read => FileAccess.Read, 557case ZipArchiveMode.Read: 576case ZipArchiveMode.Read:
System.IO.Compression.ZipFile (12)
System\IO\Compression\ZipFile.Create.Async.cs (2)
35/// <returns>A task that represents the asynchronous operation. The task result is an opened <see cref="ZipArchive"/> in <see cref="ZipArchiveMode.Read"/> mode.</returns> 36public static Task<ZipArchive> OpenReadAsync(string archiveFileName, CancellationToken cancellationToken = default) => OpenAsync(archiveFileName, ZipArchiveMode.Read, cancellationToken);
System\IO\Compression\ZipFile.Create.cs (2)
31public static ZipArchive OpenRead(string archiveFileName) => Open(archiveFileName, ZipArchiveMode.Read); 516ZipArchiveMode.Read => (FileMode.Open, FileAccess.Read, FileShare.Read),
System\IO\Compression\ZipFile.Extract.Async.cs (4)
201ZipArchive archive = await OpenAsync(sourceArchiveFileName, ZipArchiveMode.Read, entryNameEncoding, cancellationToken).ConfigureAwait(false); 270ZipArchive archive = await OpenAsync(sourceArchiveFileName, ZipArchiveMode.Read, entryNameEncoding, cancellationToken).ConfigureAwait(false); 432ZipArchive archive = await ZipArchive.CreateAsync(source, ZipArchiveMode.Read, leaveOpen: true, entryNameEncoding, cancellationToken).ConfigureAwait(false); 488ZipArchive archive = await ZipArchive.CreateAsync(source, ZipArchiveMode.Read, leaveOpen: true, entryNameEncoding, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipFile.Extract.cs (4)
185using (ZipArchive archive = Open(sourceArchiveFileName, ZipArchiveMode.Read, entryNameEncoding)) 248using ZipArchive archive = Open(sourceArchiveFileName, ZipArchiveMode.Read, entryNameEncoding); 392using ZipArchive archive = new ZipArchive(source, ZipArchiveMode.Read, leaveOpen: true, entryNameEncoding); 440using ZipArchive archive = new ZipArchive(source, ZipArchiveMode.Read, leaveOpen: true, entryNameEncoding);
System.IO.Packaging (3)
System\IO\Packaging\ZipPackage.cs (3)
321zipArchiveMode = ZipArchiveMode.Read; 391zipArchiveMode = ZipArchiveMode.Read; 782if (_zipArchive.Mode == ZipArchiveMode.Read || _zipArchive.Mode == ZipArchiveMode.Update)