47 references to WithHttpCommand
Aspire.Hosting (4)
ApplicationModel\HttpCommandContext.cs (2)
8
/// <see cref="ResourceBuilderExtensions.
WithHttpCommand
{TResource}(IResourceBuilder{TResource}, string, string, string?, string?, HttpCommandOptions?)"/>
95
/// <see cref="ResourceBuilderExtensions.
WithHttpCommand
{TResource}(IResourceBuilder{TResource}, string, string, string?, string?, HttpCommandOptions?)"/>
ApplicationModel\HttpCommandOptions.cs (1)
33
/// Optional configuration for resource HTTP commands added with <see cref="ResourceBuilderExtensions.
WithHttpCommand
{TResource}(Aspire.Hosting.ApplicationModel.IResourceBuilder{TResource}, string, string, string?, string?, Aspire.Hosting.ApplicationModel.HttpCommandOptions?)"/>.
ResourceBuilderExtensions.cs (1)
3788
=> builder.
WithHttpCommand
(
Aspire.Hosting.Foundry (1)
HostedAgent\HostedAgentBuilderExtension.cs (1)
312
.
WithHttpCommand
(
Aspire.Hosting.Tests (25)
WithHttpCommandTests.cs (25)
109
.
WithHttpCommand
("/some-path", "Do The Thing");
132
service.
WithHttpCommand
("/some-path", "Do The Thing", commandName: "mycommand", commandOptions: new()
163
container.
WithHttpCommand
("/some-path", "Do The Thing", endpointName: "nonhttp");
202
.
WithHttpCommand
("/some-path", "Do The Thing");
226
.
WithHttpCommand
("/some-path", "Do The Thing",
405
.
WithHttpCommand
("/some-path", "Do The Thing")
406
.
WithHttpCommand
("/some-path", "Do The Thing", endpointName: "custom-endpoint")
407
.
WithHttpCommand
("/some-path", "Do The Get Thing", commandOptions: new() { Method = HttpMethod.Get })
408
.
WithHttpCommand
("/some-path", "Do The Get Thing", endpointName: "custom-endpoint", commandOptions: new() { Method = HttpMethod.Get })
409
.
WithHttpCommand
("/some-other-path", "Do The Other Thing")
411
.
WithHttpCommand
("/some-other-path", "Do The Other Thing CHANGED");
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" });
533
service.
WithHttpCommand
("/get-only", "Do The Thing", commandName: "mycommand", commandOptions: new()
655
service.
WithHttpCommand
("/status/200", "Do The Thing",
699
service.
WithHttpCommand
("/status/200", "Do The Thing",
744
service.
WithHttpCommand
("/send", "Send Message",
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 });
944
.
WithHttpCommand
("/dothing", "Do The Thing", commandName: "mycommand");
990
.
WithHttpCommand
("/dothing", "Do The Thing",
Stress.AppHost (16)
CommandResources.cs (16)
903
serviceBuilder.
WithHttpCommand
("/write-console", "Write to console", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
904
serviceBuilder.
WithHttpCommand
("/increment-counter", "Increment counter", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
905
serviceBuilder.
WithHttpCommand
("/big-trace", "Big trace", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
906
serviceBuilder.
WithHttpCommand
("/log-message", "Log message", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
907
serviceBuilder.
WithHttpCommand
("/http-command-auto-result", "HTTP command auto result", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning", ResultMode = HttpCommandResultMode.Auto, Description = "Run an HTTP command and infer the result format from the response content type" });
908
serviceBuilder.
WithHttpCommand
("/http-command-json-result", "HTTP command JSON result", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning", ResultMode = HttpCommandResultMode.Json, Description = "Run an HTTP command and flow the JSON response back to the caller" });
909
serviceBuilder.
WithHttpCommand
("/http-command-text-result", "HTTP command text result", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning", ResultMode = HttpCommandResultMode.Text, Description = "Run an HTTP command and flow the plain-text response back to the caller" });
910
serviceBuilder.
WithHttpCommand
("/multiple-traces-linked", "Multiple traces linked", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
911
serviceBuilder.
WithHttpCommand
("/overflow-counter", "Overflow counter", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
912
serviceBuilder.
WithHttpCommand
("/nested-trace-spans", "Out of order nested spans", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
913
serviceBuilder.
WithHttpCommand
("/exemplars-no-span", "Examplars with no span", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
914
serviceBuilder.
WithHttpCommand
("/genai-trace", "Gen AI trace", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
915
serviceBuilder.
WithHttpCommand
("/genai-langchain-trace", "Gen AI LangChain trace", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
916
serviceBuilder.
WithHttpCommand
("/genai-trace-display-error", "Gen AI trace display error", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
917
serviceBuilder.
WithHttpCommand
("/genai-evaluations", "Gen AI evaluations", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
918
serviceBuilder.
WithHttpCommand
("/log-formatting", "Log formatting", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
TestShop.AppHost (1)
AppHost.cs (1)
42
.
WithHttpCommand
("/reset-db", "Reset Database",