40 references to ByteArrayContent
Aspire.Cli.Tests (8)
Agents\AspireSkillsInstallerTests.cs (8)
217
Content = new
ByteArrayContent
(archiveBytes)
267
Content = new
ByteArrayContent
(archiveBytes)
334
Content = new
ByteArrayContent
(archiveBytes)
1002
Content = new
ByteArrayContent
(archiveBytes)
1612
Content = new
ByteArrayContent
(archiveBytes)
1677
Content = new
ByteArrayContent
(archiveBytes)
1726
Content = new
ByteArrayContent
(malformedArchiveBytes)
1782
Content = new
ByteArrayContent
(archiveBytes)
Aspire.Dashboard.Tests (16)
Integration\OtlpGrpcServiceTests.cs (1)
260
Content = new
ByteArrayContent
([])
Integration\OtlpHttpServiceTests.cs (13)
50
var content = new
ByteArrayContent
(request.ToByteArray());
76
var content = new
ByteArrayContent
(request.ToByteArray());
126
var content = new
ByteArrayContent
(new ExportLogsServiceRequest().ToByteArray());
198
Content = new
ByteArrayContent
(new ExportLogsServiceRequest().ToByteArray())
224
var content = new
ByteArrayContent
(new ExportLogsServiceRequest().ToByteArray());
252
var content = new
ByteArrayContent
(new ExportLogsServiceRequest().ToByteArray());
290
var content = new
ByteArrayContent
(new ExportLogsServiceRequest().ToByteArray());
317
using var content = new
ByteArrayContent
(Encoding.UTF8.GetBytes("{}"));
348
using var content = new
ByteArrayContent
(Encoding.UTF8.GetBytes("{}"));
395
var content = new
ByteArrayContent
(new ExportLogsServiceRequest().ToByteArray());
421
using var content = new
ByteArrayContent
(request.ToByteArray());
450
using var content = new
ByteArrayContent
(request.ToByteArray());
479
using var content = new
ByteArrayContent
(request.ToByteArray());
Integration\Playwright\NativeAotDashboardTests.cs (1)
154
using var content = new
ByteArrayContent
(request.ToByteArray());
Integration\StartupTests.cs (1)
528
using var content = new
ByteArrayContent
(new ExportLogsServiceRequest().ToByteArray());
dotnet-svcutil-lib (6)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpRequestMessageExtensionMethods.cs (1)
74
httpRequestMessage.Content = new
ByteArrayContent
(Array.Empty<byte>());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpRequestMessageProperty.cs (2)
343
HttpContent newContent = new
ByteArrayContent
(Array.Empty<byte>());
354
this.HttpRequestMessage.Content = new
ByteArrayContent
(Array.Empty<byte>());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageExtensionMethods.cs (1)
35
httpResponseMessage.Content = new
ByteArrayContent
(Array.Empty<byte>());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageProperty.cs (2)
367
HttpContent newContent = new
ByteArrayContent
(Array.Empty<byte>());
378
this.HttpResponseMessage.Content = new
ByteArrayContent
(Array.Empty<byte>());
Microsoft.Extensions.AI.Integration.Tests (1)
VerbatimHttpHandler.cs (1)
57
ByteArrayContent 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)
52
Content = 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)
29
httpResponseMessage.Content = new
ByteArrayContent
(Array.Empty<byte>());