13 writes to Method
Aspire.Hosting (1)
ResourceBuilderExtensions.cs (1)
1665
commandOptions.
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)
70
serviceBuilder.WithHttpCommand("/write-console", "Write to console", commandOptions: new() {
Method
= HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
71
serviceBuilder.WithHttpCommand("/increment-counter", "Increment counter", commandOptions: new() {
Method
= HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
72
serviceBuilder.WithHttpCommand("/big-trace", "Big trace", commandOptions: new() {
Method
= HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
73
serviceBuilder.WithHttpCommand("/trace-limit", "Trace limit", commandOptions: new() {
Method
= HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
74
serviceBuilder.WithHttpCommand("/log-message", "Log message", commandOptions: new() {
Method
= HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
75
serviceBuilder.WithHttpCommand("/log-message-limit", "Log message limit", commandOptions: new() {
Method
= HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
76
serviceBuilder.WithHttpCommand("/multiple-traces-linked", "Multiple traces linked", commandOptions: new() {
Method
= HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
77
serviceBuilder.WithHttpCommand("/overflow-counter", "Overflow counter", commandOptions: new() {
Method
= HttpMethod.Get, IconName = "ContentViewGalleryLightning" });
78
serviceBuilder.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.
1667
commandName ??= $"{endpoint.Resource.Name}-{endpoint.EndpointName}-http-{commandOptions.
Method
.Method.ToLowerInvariant()}-{path}";
1702
var request = new HttpRequestMessage(commandOptions.
Method
, uri);
Aspire.Hosting.Tests (1)
WithHttpCommandTests.cs (1)
211
var method = httpMethod is not null ? new HttpMethod(httpMethod) : HttpCommandOptions.Default.
Method
;