28 references to ByteArrayContent
Aspire.Dashboard.Tests (16)
Integration\McpServiceTests.cs (3)
326
var content = new
ByteArrayContent
(Encoding.UTF8.GetBytes(json));
360
var notificationContent = new
ByteArrayContent
(Encoding.UTF8.GetBytes(notificationJson));
387
var content = new
ByteArrayContent
(Encoding.UTF8.GetBytes(json));
Integration\OtlpHttpServiceTests.cs (12)
46
var content = new
ByteArrayContent
(request.ToByteArray());
72
var content = new
ByteArrayContent
(request.ToByteArray());
116
var content = new
ByteArrayContent
(new ExportLogsServiceRequest().ToByteArray());
140
var content = new
ByteArrayContent
(new ExportLogsServiceRequest().ToByteArray());
168
var content = new
ByteArrayContent
(new ExportLogsServiceRequest().ToByteArray());
206
var content = new
ByteArrayContent
(new ExportLogsServiceRequest().ToByteArray());
233
using var content = new
ByteArrayContent
(Encoding.UTF8.GetBytes("{}"));
264
using var content = new
ByteArrayContent
(Encoding.UTF8.GetBytes("{}"));
311
var content = new
ByteArrayContent
(new ExportLogsServiceRequest().ToByteArray());
337
using var content = new
ByteArrayContent
(request.ToByteArray());
366
using var content = new
ByteArrayContent
(request.ToByteArray());
395
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));
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>());