39 references to ByteArrayContent
Aspire.Cli.Tests (8)
Agents\AspireSkillsInstallerTests.cs (8)
214Content = new ByteArrayContent(archiveBytes) 264Content = new ByteArrayContent(archiveBytes) 331Content = new ByteArrayContent(archiveBytes) 999Content = new ByteArrayContent(archiveBytes) 1579Content = new ByteArrayContent(archiveBytes) 1644Content = new ByteArrayContent(archiveBytes) 1693Content = new ByteArrayContent(malformedArchiveBytes) 1749Content = new ByteArrayContent(archiveBytes)
Aspire.Dashboard.Tests (13)
Integration\OtlpHttpServiceTests.cs (12)
49var content = new ByteArrayContent(request.ToByteArray()); 75var content = new ByteArrayContent(request.ToByteArray()); 122var content = new ByteArrayContent(new ExportLogsServiceRequest().ToByteArray()); 146var content = new ByteArrayContent(new ExportLogsServiceRequest().ToByteArray()); 174var content = new ByteArrayContent(new ExportLogsServiceRequest().ToByteArray()); 212var content = new ByteArrayContent(new ExportLogsServiceRequest().ToByteArray()); 239using var content = new ByteArrayContent(Encoding.UTF8.GetBytes("{}")); 270using var content = new ByteArrayContent(Encoding.UTF8.GetBytes("{}")); 317var content = new ByteArrayContent(new ExportLogsServiceRequest().ToByteArray()); 343using var content = new ByteArrayContent(request.ToByteArray()); 372using var content = new ByteArrayContent(request.ToByteArray()); 401using var content = new ByteArrayContent(request.ToByteArray());
Integration\StartupTests.cs (1)
524using var content = new ByteArrayContent(new ExportLogsServiceRequest().ToByteArray());
BlazorHosted.ClientServiceDefaults (1)
BackgroundExportHandler.cs (1)
117clone.Content = new ByteArrayContent(ContentBytes);
BlazorStandalone.ClientServiceDefaults (1)
BackgroundExportHandler.cs (1)
121clone.Content = new ByteArrayContent(ContentBytes);
dotnet-svcutil-lib (6)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpRequestMessageExtensionMethods.cs (1)
74httpRequestMessage.Content = new ByteArrayContent(Array.Empty<byte>());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpRequestMessageProperty.cs (2)
343HttpContent newContent = new ByteArrayContent(Array.Empty<byte>()); 354this.HttpRequestMessage.Content = new ByteArrayContent(Array.Empty<byte>());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageExtensionMethods.cs (1)
35httpResponseMessage.Content = new ByteArrayContent(Array.Empty<byte>());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageProperty.cs (2)
367HttpContent newContent = new ByteArrayContent(Array.Empty<byte>()); 378this.HttpResponseMessage.Content = new ByteArrayContent(Array.Empty<byte>());
Microsoft.Extensions.AI.Integration.Tests (1)
VerbatimHttpHandler.cs (1)
57ByteArrayContent newContent = new(Encoding.UTF8.GetBytes(actualInput));
Microsoft.Extensions.AI.OpenAI.Tests (3)
OpenAIHostedFileClientTests.cs (3)
573? new HttpResponseMessage(HttpStatusCode.OK) { Content = new ByteArrayContent(fileData) } 607? new HttpResponseMessage(HttpStatusCode.OK) { Content = new ByteArrayContent(fileData) } 702? new HttpResponseMessage(HttpStatusCode.OK) { Content = new ByteArrayContent(fileData) }
Microsoft.Extensions.Logging.AzureAppServices (1)
BlobAppendReferenceWrapper.cs (1)
52Content = new ByteArrayContent(Array.Empty<byte>()),
System.Net.Http (3)
System\Net\Http\FormUrlEncodedContent.cs (1)
21: base(GetContentByteArray(nameValueCollection))
System\Net\Http\StringContent.cs (2)
49: base(GetContentByteArray(content, encoding)) 81: base(GetContentByteArray(content, encoding))
System.Net.Requests (1)
System\Net\HttpWebRequest.cs (1)
1226_sendRequestMessage.Content ??= new ByteArrayContent(Array.Empty<byte>());
System.ServiceModel.Http (1)
System\ServiceModel\Channels\HttpResponseMessageExtensionMethods.cs (1)
29httpResponseMessage.Content = new ByteArrayContent(Array.Empty<byte>());