1 write to HttpClientName
Aspire.Hosting.Tests (1)
WithHttpCommandTests.cs (1)
231
.WithHttpCommand("/get-only", "Do The Thing", commandName: "mycommand", commandOptions: new() {
HttpClientName
= "commandclient" });
5 references to HttpClientName
Aspire.Hosting (5)
ResourceBuilderExtensions.cs (5)
1557
/// Specifying <see cref="HttpCommandOptions.
HttpClientName
"/> will use that named <see cref="HttpClient"/> when sending the request. This allows you to configure the <see cref="HttpClient"/>
1559
/// If <see cref="HttpCommandOptions.
HttpClientName
"/> is not specified, the default <see cref="HttpClient"/> will be used.
1647
/// Specifying a <see cref="HttpCommandOptions.
HttpClientName
"/> will use that named <see cref="HttpClient"/> when sending the request. This allows you to configure the <see cref="HttpClient"/>
1649
/// If no <see cref="HttpCommandOptions.
HttpClientName
"/> is specified, the default <see cref="HttpClient"/> will be used.
1730
var httpClient = context.ServiceProvider.GetRequiredService<IHttpClientFactory>().CreateClient(commandOptions.
HttpClientName
?? Options.DefaultName);