12 writes to Method
Aspire.Hosting (1)
ResourceBuilderExtensions.cs (1)
1617commandOptions.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)
64serviceBuilder.WithHttpCommand("/write-console", "Write to console", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 65serviceBuilder.WithHttpCommand("/increment-counter", "Increment counter", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 66serviceBuilder.WithHttpCommand("/big-trace", "Big trace", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 67serviceBuilder.WithHttpCommand("/trace-limit", "Trace limit", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 68serviceBuilder.WithHttpCommand("/log-message", "Log message", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 69serviceBuilder.WithHttpCommand("/log-message-limit", "Log message limit", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 70serviceBuilder.WithHttpCommand("/multiple-traces-linked", "Multiple traces linked", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning" }); 71serviceBuilder.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. 1619commandName ??= $"{endpoint.Resource.Name}-{endpoint.EndpointName}-http-{commandOptions.Method.Method.ToLowerInvariant()}-{path}"; 1654var request = new HttpRequestMessage(commandOptions.Method, uri);
Aspire.Hosting.Tests (1)
WithHttpCommandTests.cs (1)
166var method = httpMethod is not null ? new HttpMethod(httpMethod) : HttpCommandOptions.Default.Method;