17 writes to ResultMode
Aspire.Hosting (1)
ResourceBuilderExtensions.cs (1)
4185
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 (10)
CommandResources.cs (10)
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" });
922
ResultMode
= HttpCommandResultMode.Text,
933
ResultMode
= HttpCommandResultMode.Text,
944
ResultMode
= HttpCommandResultMode.Text,
955
ResultMode
= HttpCommandResultMode.Text,
966
ResultMode
= HttpCommandResultMode.Text,
977
ResultMode
= HttpCommandResultMode.Text,
988
ResultMode
= HttpCommandResultMode.Text,
3 references to ResultMode
Aspire.Hosting (3)
ResourceBuilderExtensions.cs (3)
3932
/// <see cref="HttpCommandOptions.
ResultMode
"/> to flow the HTTP response body back to the command caller.
4026
/// <see cref="HttpCommandOptions.
ResultMode
"/> to flow the HTTP response body back to the command caller.
4249
if (TryGetHttpCommandResultFormat(commandOptions.
ResultMode
, response.Content?.Headers.ContentType, out var resultFormat) &&