29 writes to DataStream
Aspire.Cli.Tests (9)
Agents\AgentTelemetryCatalogTests.cs (1)
167writer.WriteEntry(new PaxTarEntry(TarEntryType.RegularFile, path) { DataStream = data });
BundleServiceIntegrationTests.cs (8)
697DataStream = new MemoryStream(System.Text.Encoding.UTF8.GetBytes($"#!/bin/sh\necho {contentMarker}\n")) 706DataStream = content 716DataStream = new MemoryStream(System.Text.Encoding.UTF8.GetBytes("native-dashboard")) 724DataStream = new MemoryStream(System.Text.Encoding.UTF8.GetBytes("dashboard-static-asset")) 734DataStream = blazorScriptContent 743DataStream = sqliteLibraryContent 755DataStream = new MemoryStream(System.Text.Encoding.UTF8.GetBytes($"dcp-{contentMarker}\n")) 764DataStream = new MemoryStream(System.Text.Encoding.UTF8.GetBytes($"tray-{contentMarker}"))
Aspire.Hosting (1)
Publishing\ContainerImageArchiveRewriter.cs (1)
206entry.DataStream = rewrittenStream;
Aspire.Hosting.TestUtilities (2)
Publishing\TestContainerImageArchive.cs (2)
179DataStream = layerArchive 226DataStream = data
CreateLayout (1)
Program.cs (1)
415DataStream = dataStream
Microsoft.Build.Tasks.Core (1)
TarDirectory.cs (1)
528entry.DataStream = dataStream;
Microsoft.NET.Build.Containers (15)
Layer.cs (1)
187DataStream = fileStream,
LocalDaemons\ContainerArchive.cs (7)
143DataStream = configStream 177DataStream = manifestStream 192DataStream = layoutStream 208DataStream = manifestStream 239DataStream = indexStream 280DataStream = manifestListStream 299DataStream = indexStream
LocalDaemons\DockerCli.cs (7)
372DataStream = configStream 403DataStream = manifestStream 441DataStream = ociLayoutStream 459DataStream = manifestStream 484DataStream = indexStream 547DataStream = indexStream 566DataStream = indexStream
23 references to DataStream
aspire (2)
Agents\Hooks\AgentTelemetryCatalog.cs (2)
119if (manifest is not null || entry.DataStream is null || 124manifest = JsonSerializer.Deserialize(entry.DataStream, AspireSkillsJsonSerializerContext.Default.SkillBundleManifest)
Aspire.Hosting (1)
Publishing\ContainerImageArchiveRewriter.cs (1)
512var dataStream = entry.DataStream ?? throw InvalidMetadata(entry.Name, "the entry has no data");
Aspire.Hosting.TestUtilities (4)
Publishing\TestContainerImageArchive.cs (4)
80entry.DataStream ?? throw new InvalidDataException("The Docker manifest entry has no data.")); 127(entry.DataStream ?? throw new InvalidDataException("The layer.tar entry has no data.")).CopyTo(layerArchive); 139layerEntry.DataStream ?? throw new InvalidDataException("The layer payload entry has no data."), 196entry.DataStream ?? throw new InvalidDataException($"The '{entryName}' entry has no data."),
Infrastructure.Tests (2)
Pipelines\TrayBundleTests.cs (2)
116await entry.DataStream!.CopyToAsync(content); 300await entry.DataStream!.CopyToAsync(content);
Microsoft.NET.Build.Containers (2)
Layer.cs (2)
204if (entry.DataStream is not null) 207entry.DataStream.Dispose();
System.Formats.Tar (12)
System\Formats\Tar\TarEntry.cs (3)
780DataStream?.CopyTo(fs); 804else if (DataStream != null) 807await DataStream.CopyToAsync(fs, cancellationToken).ConfigureAwait(false);
System\Formats\Tar\TarReader.cs (7)
29/// <param name="leaveOpen"><see langword="false"/> to dispose the <paramref name="archiveStream"/> when this instance is disposed, as well as all the non-null <see cref="TarEntry.DataStream"/> instances from the entries that were visited by this reader; <see langword="true"/> to leave all the streams open.</param> 50/// Disposes the current <see cref="TarReader"/> instance, closes the archive stream, and disposes the non-null <see cref="TarEntry.DataStream"/> instances of all the entries that were read from the archive if the <c>leaveOpen</c> argument was set to <see langword="false"/> in the constructor. 52/// <remarks>The <see cref="TarEntry.DataStream"/> property of any entry can be replaced with a new stream. If the user decides to replace it on a <see cref="TarEntry"/> instance that was obtained using a <see cref="TarReader"/>, the underlying stream gets disposed immediately, freeing the <see cref="TarReader"/> of origin from the responsibility of having to dispose it.</remarks> 61/// Asynchronously disposes the current <see cref="TarReader"/> instance, and disposes the non-null <see cref="TarEntry.DataStream"/> instances of all the entries that were read from the archive. 63/// <remarks>The <see cref="TarEntry.DataStream"/> property of any entry can be replaced with a new stream. If the user decides to replace it on a <see cref="TarEntry"/> instance that was obtained using a <see cref="TarReader"/>, the underlying stream gets disposed immediately, freeing the <see cref="TarReader"/> of origin from the responsibility of having to dispose it.</remarks> 92/// <para>Set it to <see langword="false"/> if the data should not be copied into a new stream. If the underlying stream is unseekable, the user has the responsibility of reading and processing the <see cref="TarEntry.DataStream"/> immediately after calling this method.</para> 128/// <para>Set it to <see langword="false"/> if the data should not be copied into a new stream. If the underlying stream is unseekable, the user has the responsibility of reading and processing the <see cref="TarEntry.DataStream"/> immediately after calling this method.</para>
System\Formats\Tar\TarWriter.cs (2)
210/// <remarks><para>Before writing an entry to the archive, if you wrote data into the entry's <see cref="TarEntry.DataStream"/>, make sure to rewind it to the desired start position.</para> 258/// <remarks><para>Before writing an entry to the archive, if you wrote data into the entry's <see cref="TarEntry.DataStream"/>, make sure to rewind it to the desired start position.</para>