63 references to HttpClient
aspire (1)
Utils\CliDownloader.cs (1)
29private static readonly HttpClient s_httpClient = new();
Aspire.Cli.Tests (1)
TestServices\TestHttpClientFactory.cs (1)
13return new HttpClient();
Aspire.Dashboard.Tests (14)
Integration\FrontendBrowserTokenAuthTests.cs (5)
39using var client = new HttpClient { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 61using var client = new HttpClient { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 92using var client = new HttpClient { BaseAddress = new Uri($"http://{app.OtlpServiceHttpEndPointAccessor().EndPoint}") }; 116using var client = new HttpClient { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 141using var client = new HttpClient { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") };
Integration\OtlpHttpServiceTests.cs (6)
231using var client = new HttpClient { BaseAddress = new Uri($"http://{endpoint.EndPoint}") }; 262using var client = new HttpClient { BaseAddress = new Uri($"http://{endpoint.EndPoint}") }; 309using var client = new HttpClient { BaseAddress = new Uri($"http://{endpoint.EndPoint}") }; 334using var client = new HttpClient { BaseAddress = new Uri($"http://{endpoint.EndPoint}") }; 363using var client = new HttpClient { BaseAddress = new Uri($"http://{endpoint.EndPoint}") }; 392using var client = new HttpClient { BaseAddress = new Uri($"http://{endpoint.EndPoint}") };
Integration\StartupTests.cs (3)
519using var httpClient = new HttpClient() 984using var client = new HttpClient { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 1061using var client = new HttpClient { BaseAddress = new Uri($"http://{endpointString}") };
Aspire.Hosting (1)
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
903var httpClient = httpClientFactory?.CreateClient() ?? new HttpClient();
Aspire.Hosting.Seq.Tests (1)
SeqFunctionalTests.cs (1)
42HttpClient client = new()
Aspire.Hosting.Tests (3)
DistributedApplicationTests.cs (3)
649using var clientB = new HttpClient(); 1572using var client = new HttpClient(); 1592using var client = new HttpClient();
Aspire.Playground.Tests (1)
Infrastructure\DistributedApplicationExtensions.cs (1)
183var httpClient = new HttpClient
Aspire.Templates.Tests (1)
StarterTemplateRunTestsBase.cs (1)
83using var httpClient = new HttpClient();
dotnet (2)
Commands\Workload\Install\WorkloadManifestUpdater.cs (1)
505using HttpClient httpClient = new();
NugetSearch\NugetToolSearchApiRequest.cs (1)
23var httpClient = new HttpClient();
GenerateDocumentationAndConfigFiles (1)
Program.cs (1)
33private static readonly HttpClient httpClient = new();
Infrastructure.Common (3)
ServiceUtilHelper.cs (3)
574using (HttpClient httpClient = new HttpClient()) 593using (HttpClient httpClient = new HttpClient()) 612using (HttpClient httpClient = new HttpClient())
installer.tasks (1)
StaticFileRegeneration\RegenerateThirdPartyNotices.cs (1)
41using (var client = new HttpClient())
Microsoft.AspNetCore.Testing (1)
ServiceFakesHostExtensions.cs (1)
52return new HttpClient { BaseAddress = uri };
Microsoft.Deployment.DotNet.Releases (1)
Utils.cs (1)
152s_httpClient = new HttpClient();
Microsoft.DotNet.HotReload.WebAssembly.Browser (1)
WebAssemblyHotReload.cs (1)
89using var client = new HttpClient()
Microsoft.Extensions.AI.OpenAI.Tests (3)
OpenAIResponseClientTests.cs (1)
5176using HttpClient httpClient = new();
OpenAISpeechToTextClientTests.cs (2)
104using HttpClient httpClient = new(); 118using HttpClient httpClient = new();
Microsoft.Extensions.DataIngestion.Tests (1)
Readers\DocumentReaderConformanceTests.cs (1)
18private static readonly HttpClient _httpClient = new() { Timeout = TimeSpan.FromSeconds(30) };
Microsoft.Extensions.ML (2)
ModelLoaders\UriModelLoader.cs (2)
107using (var client = new HttpClient()) 141using (var client = new HttpClient())
Microsoft.Maui.Controls (1)
UriImageSource.cs (1)
117 using var client = new HttpClient();
Microsoft.ML.AutoML.Tests (1)
DatasetUtil.cs (1)
208using (var client = new HttpClient())
Microsoft.ML.Core (1)
Utilities\ResourceManagerUtils.cs (1)
157using (var client = new HttpClient())
Microsoft.ML.PerformanceTests (1)
ImageClassificationBench.cs (1)
159using (HttpClient client = new HttpClient())
Microsoft.ML.Samples (5)
Dynamic\TensorFlow\ImageClassification.cs (1)
123using (HttpClient client = new HttpClient())
Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
272using (HttpClient client = new HttpClient())
Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (1)
304using (HttpClient client = new HttpClient())
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
260using (HttpClient client = new HttpClient())
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
281using (HttpClient client = new HttpClient())
Microsoft.ML.Samples.GPU (5)
docs\samples\Microsoft.ML.Samples\Dynamic\TensorFlow\ImageClassification.cs (1)
123using (HttpClient client = new HttpClient())
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
272using (HttpClient client = new HttpClient())
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (1)
304using (HttpClient client = new HttpClient())
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
260using (HttpClient client = new HttpClient())
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
281using (HttpClient client = new HttpClient())
Microsoft.ML.SamplesUtils (1)
SamplesDatasetUtils.cs (1)
196using (HttpClient client = new HttpClient())
Microsoft.ML.Tokenizers.Data.Tests (1)
test\Microsoft.ML.Tokenizers.Tests\Utils.cs (1)
17using (var client = new HttpClient() { Timeout = TimeSpan.FromMinutes(5) })
Microsoft.ML.Tokenizers.Tests (2)
LlamaTests.cs (1)
21private static readonly HttpClient _httpClient = new HttpClient() { Timeout = TimeSpan.FromMinutes(5) };
Utils.cs (1)
17using (var client = new HttpClient() { Timeout = TimeSpan.FromMinutes(5) })
Microsoft.NET.Sdk.Publish.Tasks (3)
Kudu\KuduVfsDeploy.cs (1)
59using (var client = new HttpClient())
Kudu\KuduZipDeploy.cs (1)
50using (var client = new HttpClient())
Tasks\Http\DefaultHttpClient.cs (1)
11private readonly HttpClient _httpClient = new()
NuGet.Packaging (1)
Signing\Timestamp\Rfc3161TimestampRequestNetstandard21Wrapper.cs (1)
17private static readonly HttpClient HttpClient = new HttpClient();
Pipelines.Library (1)
DistributedApplicationPipelineExtensions.cs (1)
148using var httpClient = new HttpClient();
System.Windows.Forms (1)
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
28private static readonly HttpClient s_httpClient = !AppContextSwitches.ServicePointManagerCheckCrl ? new() :