61 references to ByteArrayContent
Aspire.Dashboard.Tests (12)
Integration\OtlpHttpServiceTests.cs (11)
43var content = new ByteArrayContent(request.ToByteArray()); 69var content = new ByteArrayContent(request.ToByteArray()); 113var content = new ByteArrayContent(new ExportLogsServiceRequest().ToByteArray()); 137var content = new ByteArrayContent(new ExportLogsServiceRequest().ToByteArray()); 165var content = new ByteArrayContent(new ExportLogsServiceRequest().ToByteArray()); 203var content = new ByteArrayContent(new ExportLogsServiceRequest().ToByteArray()); 230using var content = new ByteArrayContent(Encoding.UTF8.GetBytes("{}")); 258var content = new ByteArrayContent(new ExportLogsServiceRequest().ToByteArray()); 284using var content = new ByteArrayContent(request.ToByteArray()); 313using var content = new ByteArrayContent(request.ToByteArray()); 342using var content = new ByteArrayContent(request.ToByteArray());
Integration\StartupTests.cs (1)
404using var content = new ByteArrayContent(new ExportLogsServiceRequest().ToByteArray());
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>());
Interop.FunctionalTests (2)
Http3\Http3RequestTests.cs (1)
1370request.Content = new ByteArrayContent(TestData);
HttpClientHttp2InteropTests.cs (1)
1330var response = await client.PostAsync(url, new ByteArrayContent(new byte[1024 * 18])).DefaultTimeout();
Microsoft.AspNetCore.Http.Connections.Tests (1)
HttpConnectionDispatcherTests.cs (1)
3613response.Content = new ByteArrayContent(_stream.ToArray());
Microsoft.AspNetCore.Mvc.FunctionalTests (4)
InputFormatterTests.cs (4)
226var content = new ByteArrayContent(Array.Empty<byte>()); 271var content = new ByteArrayContent(Array.Empty<byte>()); 286var content = new ByteArrayContent(Array.Empty<byte>()); 301var content = new ByteArrayContent(Array.Empty<byte>());
Microsoft.AspNetCore.RequestDecompression.Tests (6)
RequestDecompressionMiddlewareTests.cs (6)
240request.Content = new ByteArrayContent(compressedBytes); 311request.Content = new ByteArrayContent(compressedBytes); 387request.Content = new ByteArrayContent(compressedBytes); 489request.Content = new ByteArrayContent(compressedBytes); 573request.Content = new ByteArrayContent(compressedBytes); 724request.Content = new ByteArrayContent(compressedContent);
Microsoft.AspNetCore.SignalR.Client.Tests (1)
ResponseUtils.cs (1)
24CreateResponse(statusCode, new ByteArrayContent(payload));
Microsoft.AspNetCore.TestHost.Tests (2)
ClientHandlerTests.cs (2)
139var content = new ByteArrayContent(contentBytes); 192var content = new ByteArrayContent(contentBytes);
Microsoft.DotNet.Build.Tasks.Feed.Tests (16)
GeneralTests.cs (3)
122response.Content = new ByteArrayContent(content); 158Content = new ByteArrayContent(responseContent) 162Content = new ByteArrayContent(responseContent)
PublishToSymbolServerTest.cs (13)
241Content = new ByteArrayContent(responseContent) 278Content = new ByteArrayContent(responseContent) 282Content = new ByteArrayContent(responseContent) 286Content = new ByteArrayContent(responseContent) 321Content = new ByteArrayContent(responseContent) 325Content = new ByteArrayContent(responseContent) 329Content = new ByteArrayContent(responseContent) 364Content = new ByteArrayContent(responseContent) 368Content = new ByteArrayContent(responseContent) 400Content = new ByteArrayContent(responseContent) 429Content = new ByteArrayContent(responseContent) 433Content = new ByteArrayContent(responseContent) 437Content = new ByteArrayContent(responseContent)
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)
1200_sendRequestMessage.Content ??= new ByteArrayContent(Array.Empty<byte>());
System.ServiceModel.Http (6)
System\ServiceModel\Channels\HttpRequestMessageExtensionMethods.cs (1)
64httpRequestMessage.Content = new ByteArrayContent(Array.Empty<byte>());
System\ServiceModel\Channels\HttpRequestMessageProperty.cs (2)
326HttpContent newContent = new ByteArrayContent(Array.Empty<byte>()); 337HttpRequestMessage.Content = new ByteArrayContent(Array.Empty<byte>());
System\ServiceModel\Channels\HttpResponseMessageExtensionMethods.cs (1)
24httpResponseMessage.Content = new ByteArrayContent(Array.Empty<byte>());
System\ServiceModel\Channels\HttpResponseMessageProperty.cs (2)
350HttpContent newContent = new ByteArrayContent(Array.Empty<byte>()); 361HttpResponseMessage.Content = new ByteArrayContent(Array.Empty<byte>());