29 references to WithHttpCommand
Aspire.Hosting (2)
ApplicationModel\HttpCommandContext.cs (1)
8/// <see cref="ResourceBuilderExtensions.WithHttpCommand{TResource}(IResourceBuilder{TResource}, string, string, string?, string?, HttpCommandOptions?)"/>
ApplicationModel\HttpCommandOptions.cs (1)
7/// 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?)"/>."/>
Aspire.Hosting.Tests (17)
WithHttpCommandTests.cs (17)
23.WithHttpCommand("/some-path", "Do The Thing"); 47container.WithHttpCommand("/some-path", "Do The Thing", endpointName: "nonhttp"); 86.WithHttpCommand("/some-path", "Do The Thing"); 110.WithHttpCommand("/some-path", "Do The Thing", 143.WithHttpCommand("/some-path", "Do The Thing") 144.WithHttpCommand("/some-path", "Do The Thing", endpointName: "custom-endpoint") 145.WithHttpCommand("/some-path", "Do The Get Thing", commandOptions: new() { Method = HttpMethod.Get }) 146.WithHttpCommand("/some-path", "Do The Get Thing", endpointName: "custom-endpoint", commandOptions: new() { Method = HttpMethod.Get }) 147.WithHttpCommand("/some-other-path", "Do The Other Thing") 149.WithHttpCommand("/some-other-path", "Do The Other Thing CHANGED"); 183.WithHttpCommand($"/status/{statusCode}", "Do The Thing", commandName: "mycommand"); 213.WithHttpCommand("/get-only", "Do The Thing", commandName: "mycommand", commandOptions: new() { Method = method }); 242.WithHttpCommand("/get-only", "Do The Thing", commandName: "mycommand", commandOptions: new() { HttpClientName = "commandclient" }); 314.WithHttpCommand("/status/200", "Do The Thing", 358.WithHttpCommand("/status/200", "Do The Thing", 407.WithHttpCommand("/dothing", "Do The Thing", commandName: "mycommand"); 467.WithHttpCommand("/dothing", "Do The Thing",
Stress.AppHost (9)
Program.cs (9)
70serviceBuilder.WithHttpCommand("/write-console", "Write to console", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 71serviceBuilder.WithHttpCommand("/increment-counter", "Increment counter", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 72serviceBuilder.WithHttpCommand("/big-trace", "Big trace", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 73serviceBuilder.WithHttpCommand("/trace-limit", "Trace limit", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 74serviceBuilder.WithHttpCommand("/log-message", "Log message", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 75serviceBuilder.WithHttpCommand("/log-message-limit", "Log message limit", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 76serviceBuilder.WithHttpCommand("/multiple-traces-linked", "Multiple traces linked", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 77serviceBuilder.WithHttpCommand("/overflow-counter", "Overflow counter", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 78serviceBuilder.WithHttpCommand("/nested-trace-spans", "Out of order nested spans", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
TestShop.AppHost (1)
Program.cs (1)
37.WithHttpCommand("/reset-db", "Reset Database",