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