3 instantiations of ResourcesCommandJsonContext
aspire (3)
Commands\ResourcesCommand.cs (2)
47public static ResourcesCommandJsonContext RelaxedEscaping => s_relaxedEscaping ??= new(new JsonSerializerOptions 58public static ResourcesCommandJsonContext Ndjson => s_ndjson ??= new(new JsonSerializerOptions
ResourcesCommandJsonContext.g.cs (1)
29public static global::Aspire.Cli.Commands.ResourcesCommandJsonContext Default { get; } = new global::Aspire.Cli.Commands.ResourcesCommandJsonContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
12 references to ResourcesCommandJsonContext
aspire (7)
Commands\ResourcesCommand.cs (6)
41private static ResourcesCommandJsonContext? s_relaxedEscaping; 42private static ResourcesCommandJsonContext? s_ndjson; 47public static ResourcesCommandJsonContext RelaxedEscaping => s_relaxedEscaping ??= new(new JsonSerializerOptions 58public static ResourcesCommandJsonContext Ndjson => s_ndjson ??= new(new JsonSerializerOptions 166var json = JsonSerializer.Serialize(output, ResourcesCommandJsonContext.RelaxedEscaping.ResourcesOutput); 193var json = JsonSerializer.Serialize(resourceJson, ResourcesCommandJsonContext.Ndjson.ResourceJson);
ResourcesCommandJsonContext.g.cs (1)
29public static global::Aspire.Cli.Commands.ResourcesCommandJsonContext Default { get; } = new global::Aspire.Cli.Commands.ResourcesCommandJsonContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Aspire.Cli.Tests (5)
Commands\ResourcesCommandTests.cs (5)
168.Select(r => System.Text.Json.JsonSerializer.Serialize(r, ResourcesCommandJsonContext.Ndjson.ResourceJson)) 179var deserialized = System.Text.Json.JsonSerializer.Deserialize(line, ResourcesCommandJsonContext.Ndjson.ResourceJson); 186.Select(line => System.Text.Json.JsonSerializer.Deserialize(line, ResourcesCommandJsonContext.Ndjson.ResourceJson)) 209var json = System.Text.Json.JsonSerializer.Serialize(resourcesOutput, ResourcesCommandJsonContext.RelaxedEscaping.ResourcesOutput); 217var deserialized = System.Text.Json.JsonSerializer.Deserialize(json, ResourcesCommandJsonContext.RelaxedEscaping.ResourcesOutput);