29 writes to DataStream
Aspire.Cli.Tests (9)
Agents\AgentTelemetryCatalogTests.cs (1)
167
writer.WriteEntry(new PaxTarEntry(TarEntryType.RegularFile, path) {
DataStream
= data });
BundleServiceIntegrationTests.cs (8)
697
DataStream
= new MemoryStream(System.Text.Encoding.UTF8.GetBytes($"#!/bin/sh\necho {contentMarker}\n"))
706
DataStream
= content
716
DataStream
= new MemoryStream(System.Text.Encoding.UTF8.GetBytes("native-dashboard"))
724
DataStream
= new MemoryStream(System.Text.Encoding.UTF8.GetBytes("dashboard-static-asset"))
734
DataStream
= blazorScriptContent
743
DataStream
= sqliteLibraryContent
755
DataStream
= new MemoryStream(System.Text.Encoding.UTF8.GetBytes($"dcp-{contentMarker}\n"))
764
DataStream
= new MemoryStream(System.Text.Encoding.UTF8.GetBytes($"tray-{contentMarker}"))
Aspire.Hosting (1)
Publishing\ContainerImageArchiveRewriter.cs (1)
206
entry.
DataStream
= rewrittenStream;
Aspire.Hosting.TestUtilities (2)
Publishing\TestContainerImageArchive.cs (2)
179
DataStream
= layerArchive
226
DataStream
= data
CreateLayout (1)
Program.cs (1)
415
DataStream
= dataStream
Microsoft.Build.Tasks.Core (1)
TarDirectory.cs (1)
528
entry.
DataStream
= dataStream;
Microsoft.NET.Build.Containers (15)
Layer.cs (1)
187
DataStream
= fileStream,
LocalDaemons\ContainerArchive.cs (7)
143
DataStream
= configStream
177
DataStream
= manifestStream
192
DataStream
= layoutStream
208
DataStream
= manifestStream
239
DataStream
= indexStream
280
DataStream
= manifestListStream
299
DataStream
= indexStream
LocalDaemons\DockerCli.cs (7)
372
DataStream
= configStream
403
DataStream
= manifestStream
441
DataStream
= ociLayoutStream
459
DataStream
= manifestStream
484
DataStream
= indexStream
547
DataStream
= indexStream
566
DataStream
= indexStream
23 references to DataStream
aspire (2)
Agents\Hooks\AgentTelemetryCatalog.cs (2)
119
if (manifest is not null || entry.
DataStream
is null ||
124
manifest = JsonSerializer.Deserialize(entry.
DataStream
, AspireSkillsJsonSerializerContext.Default.SkillBundleManifest)
Aspire.Hosting (1)
Publishing\ContainerImageArchiveRewriter.cs (1)
512
var dataStream = entry.
DataStream
?? throw InvalidMetadata(entry.Name, "the entry has no data");
Aspire.Hosting.TestUtilities (4)
Publishing\TestContainerImageArchive.cs (4)
80
entry.
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);
139
layerEntry.
DataStream
?? throw new InvalidDataException("The layer payload entry has no data."),
196
entry.
DataStream
?? throw new InvalidDataException($"The '{entryName}' entry has no data."),
Infrastructure.Tests (2)
Pipelines\TrayBundleTests.cs (2)
116
await entry.
DataStream
!.CopyToAsync(content);
300
await entry.
DataStream
!.CopyToAsync(content);
Microsoft.NET.Build.Containers (2)
Layer.cs (2)
204
if (entry.
DataStream
is not null)
207
entry.
DataStream
.Dispose();
System.Formats.Tar (12)
System\Formats\Tar\TarEntry.cs (3)
780
DataStream
?.CopyTo(fs);
804
else if (
DataStream
!= null)
807
await
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>