12 writes to Method
Aspire.Hosting (1)
ResourceBuilderExtensions.cs (1)
1617
commandOptions.
Method
??= HttpMethod.Post;
Aspire.Hosting.Tests (3)
WithHttpCommandTests.cs (3)
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 })
169
.WithHttpCommand("/get-only", "Do The Thing", commandName: "mycommand", commandOptions: new() {
Method
= method });
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" });
5 references to Method
Aspire.Hosting (4)
ResourceBuilderExtensions.cs (4)
1482
/// If <see cref="HttpCommandOptions.
Method
"/> is not specified, <c>POST</c> will be used.
1572
/// If <see cref="HttpCommandOptions.
Method
"/> is not specified, <c>POST</c> will be used.
1619
commandName ??= $"{endpoint.Resource.Name}-{endpoint.EndpointName}-http-{commandOptions.
Method
.Method.ToLowerInvariant()}-{path}";
1654
var request = new HttpRequestMessage(commandOptions.
Method
, uri);
Aspire.Hosting.Tests (1)
WithHttpCommandTests.cs (1)
166
var method = httpMethod is not null ? new HttpMethod(httpMethod) : HttpCommandOptions.Default.
Method
;