10 writes to ResultMode
Aspire.Hosting (1)
ResourceBuilderExtensions.cs (1)
3814commandOptions.ResultMode = exportOptions.ResultMode;
Aspire.Hosting.Tests (6)
WithHttpCommandTests.cs (6)
72ResultMode = HttpCommandResultMode.Json 91ResultMode = HttpCommandResultMode.Auto 835service.WithHttpCommand("/token", "Generate Token", commandName: "mycommand", commandOptions: new() { HttpClientName = "commandclient", ResultMode = HttpCommandResultMode.Json }); 862service.WithHttpCommand("/text", "Get Text", commandName: "mycommand", commandOptions: new() { HttpClientName = "commandclient", ResultMode = HttpCommandResultMode.Text }); 890service.WithHttpCommand("/token", "Generate Token", commandName: "mycommand", commandOptions: new() { HttpClientName = "commandclient", ResultMode = HttpCommandResultMode.Auto }); 917service.WithHttpCommand("/text", "Get Text", commandName: "mycommand", commandOptions: new() { HttpClientName = "commandclient", ResultMode = HttpCommandResultMode.Auto });
Stress.AppHost (3)
CommandResources.cs (3)
907serviceBuilder.WithHttpCommand("/http-command-auto-result", "HTTP command auto result", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning", ResultMode = HttpCommandResultMode.Auto, Description = "Run an HTTP command and infer the result format from the response content type" }); 908serviceBuilder.WithHttpCommand("/http-command-json-result", "HTTP command JSON result", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning", ResultMode = HttpCommandResultMode.Json, Description = "Run an HTTP command and flow the JSON response back to the caller" }); 909serviceBuilder.WithHttpCommand("/http-command-text-result", "HTTP command text result", commandOptions: new() { Method = HttpMethod.Get, IconName = "ContentViewGalleryLightning", ResultMode = HttpCommandResultMode.Text, Description = "Run an HTTP command and flow the plain-text response back to the caller" });
3 references to ResultMode
Aspire.Hosting (3)
ResourceBuilderExtensions.cs (3)
3561/// <see cref="HttpCommandOptions.ResultMode"/> to flow the HTTP response body back to the command caller. 3655/// <see cref="HttpCommandOptions.ResultMode"/> to flow the HTTP response body back to the command caller. 3878if (TryGetHttpCommandResultFormat(commandOptions.ResultMode, response.Content?.Headers.ContentType, out var resultFormat) &&