28 references to Json
Aspire.Hosting (4)
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
336
ApplicationModel.CommandResultFormat.
Json
=> CommandResultFormat.Json,
Dashboard\DashboardService.cs (1)
456
ApplicationModel.CommandResultFormat.
Json
=> Aspire.DashboardService.Proto.V1.CommandResultFormat.Json,
ResourceBuilderExtensions.cs (2)
4025
resultFormat = CommandResultFormat.
Json
;
4042
resultFormat = CommandResultFormat.
Json
;
Aspire.Hosting.Azure (1)
AzureProvisioningController.cs (1)
2707
Format = CommandResultFormat.
Json
,
Aspire.Hosting.Azure.Tests (1)
AzureEnvironmentResourceExtensionsTests.cs (1)
5040
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)
381
resultFormat: CommandResultFormat.
Json
,
Aspire.Hosting.Tests (13)
ResourceCommandServiceTests.cs (6)
478
executeCommand: _ => Task.FromResult(CommandResults.Success("Generated token.", "{\"token\": \"abc123\"}", CommandResultFormat.
Json
)));
488
Assert.Equal(CommandResultFormat.
Json
, result.Data.Format);
1767
var result = CommandResults.Success("Success.", "{\"key\": \"value\"}", CommandResultFormat.
Json
);
1772
Assert.Equal(CommandResultFormat.
Json
, result.Data.Format);
1778
var result = CommandResults.Success("Success.", "{\"key\": \"value\"}", CommandResultFormat.
Json
, displayImmediately: true);
1783
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)
1161
Format = CommandResultFormat.
Json