3 instantiations of ResourcesCommandJsonContext
aspire (3)
Commands\ResourcesCommand.cs (2)
47
public static ResourcesCommandJsonContext RelaxedEscaping => s_relaxedEscaping ??=
new
(new JsonSerializerOptions
58
public static ResourcesCommandJsonContext Ndjson => s_ndjson ??=
new
(new JsonSerializerOptions
ResourcesCommandJsonContext.g.cs (1)
29
public 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)
41
private static
ResourcesCommandJsonContext
? s_relaxedEscaping;
42
private static
ResourcesCommandJsonContext
? s_ndjson;
47
public static
ResourcesCommandJsonContext
RelaxedEscaping => s_relaxedEscaping ??= new(new JsonSerializerOptions
58
public static
ResourcesCommandJsonContext
Ndjson => s_ndjson ??= new(new JsonSerializerOptions
166
var json = JsonSerializer.Serialize(output,
ResourcesCommandJsonContext
.RelaxedEscaping.ResourcesOutput);
193
var json = JsonSerializer.Serialize(resourceJson,
ResourcesCommandJsonContext
.Ndjson.ResourceJson);
ResourcesCommandJsonContext.g.cs (1)
29
public 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))
179
var deserialized = System.Text.Json.JsonSerializer.Deserialize(line,
ResourcesCommandJsonContext
.Ndjson.ResourceJson);
186
.Select(line => System.Text.Json.JsonSerializer.Deserialize(line,
ResourcesCommandJsonContext
.Ndjson.ResourceJson))
209
var json = System.Text.Json.JsonSerializer.Serialize(resourcesOutput,
ResourcesCommandJsonContext
.RelaxedEscaping.ResourcesOutput);
217
var deserialized = System.Text.Json.JsonSerializer.Deserialize(json,
ResourcesCommandJsonContext
.RelaxedEscaping.ResourcesOutput);