9 references to MaxSidecarBytes
aspire (6)
Acquisition\InstallSidecarReader.cs (2)
120
if (length >
MaxSidecarBytes
)
122
reason = $"Sidecar file size {length} bytes exceeds the {
MaxSidecarBytes
}-byte limit.";
Acquisition\InstallSidecarWriter.cs (4)
61
if (stream.Position > InstallSidecarReader.
MaxSidecarBytes
)
64
$"Prepared sidecar file size {stream.Position} bytes exceeds the {InstallSidecarReader.
MaxSidecarBytes
}-byte limit.");
86
if (length > InstallSidecarReader.
MaxSidecarBytes
)
89
$"Sidecar file size {length} bytes exceeds the {InstallSidecarReader.
MaxSidecarBytes
}-byte limit.");
Aspire.Cli.Tests (3)
Acquisition\InstallSidecarReaderTests.cs (2)
236
var oversized = new string('a', (int)InstallSidecarReader.
MaxSidecarBytes
+ 1);
252
var oversized = new string('a', (int)InstallSidecarReader.
MaxSidecarBytes
+ 1);
Acquisition\InstallSidecarWriterTests.cs (1)
83
Assert.InRange(new FileInfo(sidecarPath).Length, 1, InstallSidecarReader.
MaxSidecarBytes
);