27 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 (16)
WithHttpCommandTests.cs (16)
23
.
WithHttpCommand
("/some-path", "Do The Thing");
42
.
WithHttpCommand
("/some-path", "Do The Thing");
66
.
WithHttpCommand
("/some-path", "Do The Thing",
99
.
WithHttpCommand
("/some-path", "Do The Thing")
100
.
WithHttpCommand
("/some-path", "Do The Thing", endpointName: "custom-endpoint")
101
.
WithHttpCommand
("/some-path", "Do The Get Thing", commandOptions: new() { Method = HttpMethod.Get })
102
.
WithHttpCommand
("/some-path", "Do The Get Thing", endpointName: "custom-endpoint", commandOptions: new() { Method = HttpMethod.Get })
103
.
WithHttpCommand
("/some-other-path", "Do The Other Thing")
105
.
WithHttpCommand
("/some-other-path", "Do The Other Thing CHANGED");
139
.
WithHttpCommand
($"/status/{statusCode}", "Do The Thing", commandName: "mycommand");
169
.
WithHttpCommand
("/get-only", "Do The Thing", commandName: "mycommand", commandOptions: new() { Method = method });
198
.
WithHttpCommand
("/get-only", "Do The Thing", commandName: "mycommand", commandOptions: new() { HttpClientName = "commandclient" });
270
.
WithHttpCommand
("/status/200", "Do The Thing",
314
.
WithHttpCommand
("/status/200", "Do The Thing",
363
.
WithHttpCommand
("/dothing", "Do The Thing", commandName: "mycommand");
423
.
WithHttpCommand
("/dothing", "Do The Thing",
Stress.AppHost (8)
Program.cs (8)
64
serviceBuilder.
WithHttpCommand
("/write-console", "Write to console", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
65
serviceBuilder.
WithHttpCommand
("/increment-counter", "Increment counter", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
66
serviceBuilder.
WithHttpCommand
("/big-trace", "Big trace", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
67
serviceBuilder.
WithHttpCommand
("/trace-limit", "Trace limit", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
68
serviceBuilder.
WithHttpCommand
("/log-message", "Log message", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
69
serviceBuilder.
WithHttpCommand
("/log-message-limit", "Log message limit", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
70
serviceBuilder.
WithHttpCommand
("/multiple-traces-linked", "Multiple traces linked", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
71
serviceBuilder.
WithHttpCommand
("/overflow-counter", "Overflow counter", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
TestShop.AppHost (1)
Program.cs (1)
37
.
WithHttpCommand
("/reset-db", "Reset Database",