14 writes to HttpClientName
Aspire.Hosting.Tests (13)
WithHttpCommandTests.cs (13)
449
service.WithHttpCommand($"/status/{statusCode}", "Do The Thing", commandName: "mycommand", commandOptions: new() {
HttpClientName
= "commandclient" });
475
service.WithHttpCommand("/cancel", "Cancel The Thing", commandName: "mycommand", commandOptions: new() {
HttpClientName
= "commandclient" });
506
service.WithHttpCommand("/get-only", "Do The Thing", commandName: "mycommand", commandOptions: new() { Method = method,
HttpClientName
= "commandclient" });
535
HttpClientName
= "commandclient",
620
commandOptions: new() {
HttpClientName
= "commandclient" });
659
HttpClientName
= "commandclient",
703
HttpClientName
= "commandclient",
748
HttpClientName
= "commandclient",
809
service.WithHttpCommand("/token", "Generate Token", commandName: "mycommand", commandOptions: new() {
HttpClientName
= "commandclient" });
835
service.WithHttpCommand("/token", "Generate Token", commandName: "mycommand", commandOptions: new() {
HttpClientName
= "commandclient", ResultMode = HttpCommandResultMode.Json });
862
service.WithHttpCommand("/text", "Get Text", commandName: "mycommand", commandOptions: new() {
HttpClientName
= "commandclient", ResultMode = HttpCommandResultMode.Text });
890
service.WithHttpCommand("/token", "Generate Token", commandName: "mycommand", commandOptions: new() {
HttpClientName
= "commandclient", ResultMode = HttpCommandResultMode.Auto });
917
service.WithHttpCommand("/text", "Get Text", commandName: "mycommand", commandOptions: new() {
HttpClientName
= "commandclient", ResultMode = HttpCommandResultMode.Auto });
Stress.AppHost (1)
CommandResources.cs (1)
953
HttpClientName
= "large-telemetry",
7 references to HttpClientName
Aspire.Hosting (6)
ResourceBuilderExtensions.cs (6)
3549
/// 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"/>
3551
/// If <see cref="HttpCommandOptions.
HttpClientName
"/> is not specified, the default <see cref="HttpClient"/> will be used and its
3643
/// 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"/>
3645
/// If <see cref="HttpCommandOptions.
HttpClientName
"/> is not specified, the default <see cref="HttpClient"/> will be used and its
3716
var httpClient = context.Services.GetRequiredService<IHttpClientFactory>().CreateClient(commandOptions.
HttpClientName
?? Options.DefaultName);
3717
if (commandOptions.
HttpClientName
is null)
Aspire.Hosting.RemoteHost.Tests (1)
AtsCapabilityScannerTests.cs (1)
399
Assert.DoesNotContain(dto.Properties, p => p.Name == nameof(HttpCommandOptions.
HttpClientName
));