31 references to WithHttpCommand
Aspire.Hosting (3)
ApplicationModel\HttpCommandContext.cs (2)
8
/// <see cref="ResourceBuilderExtensions.
WithHttpCommand
{TResource}(IResourceBuilder{TResource}, string, string, string?, string?, HttpCommandOptions?)"/>
46
/// <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)
22
.
WithHttpCommand
("/some-path", "Do The Thing");
46
container.
WithHttpCommand
("/some-path", "Do The Thing", endpointName: "nonhttp");
85
.
WithHttpCommand
("/some-path", "Do The Thing");
109
.
WithHttpCommand
("/some-path", "Do The Thing",
142
.
WithHttpCommand
("/some-path", "Do The Thing")
143
.
WithHttpCommand
("/some-path", "Do The Thing", endpointName: "custom-endpoint")
144
.
WithHttpCommand
("/some-path", "Do The Get Thing", commandOptions: new() { Method = HttpMethod.Get })
145
.
WithHttpCommand
("/some-path", "Do The Get Thing", endpointName: "custom-endpoint", commandOptions: new() { Method = HttpMethod.Get })
146
.
WithHttpCommand
("/some-other-path", "Do The Other Thing")
148
.
WithHttpCommand
("/some-other-path", "Do The Other Thing CHANGED");
183
.
WithHttpCommand
($"/status/{statusCode}", "Do The Thing", commandName: "mycommand");
207
.
WithHttpCommand
("/get-only", "Do The Thing", commandName: "mycommand", commandOptions: new() { Method = method });
230
.
WithHttpCommand
("/get-only", "Do The Thing", commandName: "mycommand", commandOptions: new() { HttpClientName = "commandclient" });
292
.
WithHttpCommand
("/status/200", "Do The Thing",
333
.
WithHttpCommand
("/status/200", "Do The Thing",
376
.
WithHttpCommand
("/dothing", "Do The Thing", commandName: "mycommand");
437
.
WithHttpCommand
("/dothing", "Do The Thing",
Stress.AppHost (10)
Program.cs (10)
78
serviceBuilder.
WithHttpCommand
("/write-console", "Write to console", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
79
serviceBuilder.
WithHttpCommand
("/increment-counter", "Increment counter", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
80
serviceBuilder.
WithHttpCommand
("/big-trace", "Big trace", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
81
serviceBuilder.
WithHttpCommand
("/trace-limit", "Trace limit", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
82
serviceBuilder.
WithHttpCommand
("/log-message", "Log message", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
83
serviceBuilder.
WithHttpCommand
("/log-message-limit", "Log message limit", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
84
serviceBuilder.
WithHttpCommand
("/multiple-traces-linked", "Multiple traces linked", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
85
serviceBuilder.
WithHttpCommand
("/overflow-counter", "Overflow counter", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
86
serviceBuilder.
WithHttpCommand
("/nested-trace-spans", "Out of order nested spans", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
87
serviceBuilder.
WithHttpCommand
("/exemplars-no-span", "Examplars with no span", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
TestShop.AppHost (1)
Program.cs (1)
38
.
WithHttpCommand
("/reset-db", "Reset Database",