28 references to Json
Aspire.Hosting (4)
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
334
ApplicationModel.CommandResultFormat.
Json
=> CommandResultFormat.Json,
Dashboard\DashboardService.cs (1)
433
ApplicationModel.CommandResultFormat.
Json
=> Aspire.DashboardService.Proto.V1.CommandResultFormat.Json,
ResourceBuilderExtensions.cs (2)
3904
resultFormat = CommandResultFormat.
Json
;
3921
resultFormat = CommandResultFormat.
Json
;
Aspire.Hosting.Azure (1)
AzureProvisioningController.cs (1)
2707
Format = CommandResultFormat.
Json
,
Aspire.Hosting.Azure.Tests (1)
AzureEnvironmentResourceExtensionsTests.cs (1)
5028
Assert.Equal(CommandResultFormat.
Json
, data.Format);
Aspire.Hosting.Browsers (1)
BrowserLogsBuilderExtensions.cs (1)
262
Format = CommandResultFormat.
Json
,
Aspire.Hosting.Browsers.Tests (2)
BrowserLogsBuilderExtensionsTests.cs (1)
800
Assert.Equal(CommandResultFormat.
Json
, result.Data.Format);
src\Aspire.Hosting.Browsers\BrowserLogsBuilderExtensions.cs (1)
262
Format = CommandResultFormat.
Json
,
Aspire.Hosting.Foundry (1)
HostedAgent\HostedAgentBuilderExtension.cs (1)
379
resultFormat: CommandResultFormat.
Json
,
Aspire.Hosting.Tests (13)
ResourceCommandServiceTests.cs (6)
477
executeCommand: _ => Task.FromResult(CommandResults.Success("Generated token.", "{\"token\": \"abc123\"}", CommandResultFormat.
Json
)));
487
Assert.Equal(CommandResultFormat.
Json
, result.Data.Format);
1664
var result = CommandResults.Success("Success.", "{\"key\": \"value\"}", CommandResultFormat.
Json
);
1669
Assert.Equal(CommandResultFormat.
Json
, result.Data.Format);
1675
var result = CommandResults.Success("Success.", "{\"key\": \"value\"}", CommandResultFormat.
Json
, displayImmediately: true);
1680
Assert.Equal(CommandResultFormat.
Json
, result.Data.Format);
WithHttpCommandTests.cs (5)
31
[InlineData("application/json", true, CommandResultFormat.
Json
)]
32
[InlineData("application/problem+json", true, CommandResultFormat.
Json
)]
78
Assert.Equal(CommandResultFormat.
Json
, result.Data?.Format);
848
Assert.Equal(CommandResultFormat.
Json
, result.Data?.Format);
903
Assert.Equal(CommandResultFormat.
Json
, result.Data?.Format);
WithProcessCommandTests.cs (2)
781
Format = CommandResultFormat.
Json
,
794
Assert.Equal(CommandResultFormat.
Json
, result.Data?.Format);
Stress.AppHost (5)
CommandResources.cs (4)
1143
Format = CommandResultFormat.
Json
1175
return Task.FromResult(CommandResults.Failure("Validation failed", json, CommandResultFormat.
Json
));
1219
Format = CommandResultFormat.
Json
,
1226
return CommandResults.Failure(message, SerializeCommandPayload(payload), CommandResultFormat.
Json
);
InteractionCommands.cs (1)
1080
Format = CommandResultFormat.
Json