12 references to JsonArray
aspire (7)
Agents\Hooks\TelemetryHookConfigurator.cs (2)
148["args"] = new JsonArray(args.Select(arg => (JsonNode?)JsonValue.Create(arg)).ToArray()), 265["args"] = new JsonArray(args.Select(arg => (JsonNode?)JsonValue.Create(arg)).ToArray()),
src\Shared\ConsoleLogs\SharedAIHelpers.cs (5)
160var jsonArray = new JsonArray(spans.Select(s => GetSpanDto(s, context, getResourceName, dashboardBaseUrl)).ToArray<JsonNode>()); 174var jsonArray = new JsonArray(logRecords.Select(l => GetLogEntryDto(l, context, getResourceName, dashboardBaseUrl)).ToArray<JsonNode>()); 188var jsonArray = new JsonArray(traces.Select(t => GetTraceDto(t, context, getResourceName, dashboardBaseUrl)).ToArray<JsonNode>()); 238linksArray = new JsonArray(linkObjects); 392var spanArray = new JsonArray(spanObjects.ToArray());
Aspire.Hosting.Azure.Sandboxes (3)
AzureSandboxContainerDeployment.cs (3)
2018["Endpoints"] = new JsonArray( 2030["IdentitySettings"] = new JsonArray( 2044["HostRules"] = new JsonArray(
Microsoft.NET.Build.Containers (2)
ImageConfig.cs (2)
163["history"] = new JsonArray(_history.Select(CreateHistory).ToArray<JsonNode>()) 168static JsonArray ToJsonArray(IEnumerable<string> items) => new(items.Where(s => !string.IsNullOrEmpty(s)).Select(s => JsonValue.Create(s)).ToArray<JsonNode?>());