10 writes to ResultMode
Aspire.Hosting (1)
ResourceBuilderExtensions.cs (1)
3814
commandOptions.
ResultMode
= exportOptions.ResultMode;
Aspire.Hosting.Tests (6)
WithHttpCommandTests.cs (6)
72
ResultMode
= HttpCommandResultMode.Json
91
ResultMode
= HttpCommandResultMode.Auto
835
service.WithHttpCommand("/token", "Generate Token", commandName: "mycommand", commandOptions: new() { HttpClientName = "commandclient",
ResultMode
= HttpCommandResultMode.Json });
862
service.WithHttpCommand("/text", "Get Text", commandName: "mycommand", commandOptions: new() { HttpClientName = "commandclient",
ResultMode
= HttpCommandResultMode.Text });
890
service.WithHttpCommand("/token", "Generate Token", commandName: "mycommand", commandOptions: new() { HttpClientName = "commandclient",
ResultMode
= HttpCommandResultMode.Auto });
917
service.WithHttpCommand("/text", "Get Text", commandName: "mycommand", commandOptions: new() { HttpClientName = "commandclient",
ResultMode
= HttpCommandResultMode.Auto });
Stress.AppHost (3)
CommandResources.cs (3)
907
serviceBuilder.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" });
908
serviceBuilder.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" });
909
serviceBuilder.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.
3878
if (TryGetHttpCommandResultFormat(commandOptions.
ResultMode
, response.Content?.Headers.ContentType, out var resultFormat) &&