54 instantiations of ResourceInfoJson
Aspire.Cli.Tests (54)
Commands\ExportCommandTests.cs (15)
31new ResourceInfoJson { Name = "redis", InstanceId = null }, 32new ResourceInfoJson { Name = "apiservice", InstanceId = null }, 119resources: [new ResourceInfoJson { Name = "redis", InstanceId = null }], 237new[] { new ResourceInfoJson { Name = "target-resource", InstanceId = null } }, 306new ResourceInfoJson { Name = "redis", InstanceId = null }, 307new ResourceInfoJson { Name = "apiservice", InstanceId = "abc" }, 308new ResourceInfoJson { Name = "apiservice", InstanceId = "def" }, 431new ResourceInfoJson { Name = "redis", InstanceId = null }, 432new ResourceInfoJson { Name = "apiservice", InstanceId = null }, 490new ResourceInfoJson { Name = "apiservice", InstanceId = null }, 543new ResourceInfoJson { Name = "redis", InstanceId = null }, 544new ResourceInfoJson { Name = "apiservice", InstanceId = "abc" }, 545new ResourceInfoJson { Name = "apiservice", InstanceId = "def" }, 737resources: [new ResourceInfoJson { Name = "redis", InstanceId = null }], 766new ResourceInfoJson { Name = "redis", InstanceId = null },
Commands\TelemetryCommandTests.cs (9)
159new() { Name = "frontend", InstanceId = "abc123" }, 160new() { Name = "backend", InstanceId = null }, 161new() { Name = "frontend", InstanceId = "xyz789" }, 197new() { Name = "api-a", InstanceId = "1" }, 198new() { Name = "api", InstanceId = "a-1" }, 212new() { Name = "api", InstanceId = "1" }, 213new() { Name = "api", InstanceId = "2" }, 227new() { Name = "api", InstanceId = null }, 228new() { Name = "api", InstanceId = "1" },
Commands\TelemetryLogsCommandTests.cs (5)
63new ResourceInfoJson { Name = "redis", InstanceId = null }, 64new ResourceInfoJson { Name = "apiservice", InstanceId = null }, 98new ResourceInfoJson { Name = "apiservice", InstanceId = guid1.ToString() }, 99new ResourceInfoJson { Name = "apiservice", InstanceId = guid2.ToString() }, 130new ResourceInfoJson { Name = "apiservice", InstanceId = null },
Commands\TelemetrySpansCommandTests.cs (4)
62new ResourceInfoJson { Name = "frontend", InstanceId = null }, 63new ResourceInfoJson { Name = "backend", InstanceId = null }, 97new ResourceInfoJson { Name = "apiservice", InstanceId = guid1.ToString() }, 98new ResourceInfoJson { Name = "apiservice", InstanceId = guid2.ToString() },
Commands\TelemetryTracesCommandTests.cs (5)
45new ResourceInfoJson[] { new() { Name = "frontend", InstanceId = null } }, 259new ResourceInfoJson { Name = "frontend", InstanceId = null }, 260new ResourceInfoJson { Name = "backend", InstanceId = null }, 310new ResourceInfoJson { Name = "apiservice", InstanceId = guid1.ToString() }, 311new ResourceInfoJson { Name = "apiservice", InstanceId = guid2.ToString() },
Mcp\ExcludeFromMcpTests.cs (2)
488var resources = serviceNames.Select(name => new ResourceInfoJson 534var resources = serviceNames.Select(name => new ResourceInfoJson
Mcp\ListStructuredLogsToolTests.cs (6)
147new() { Name = "api-service", InstanceId = "instance-1", HasLogs = true, HasTraces = true, HasMetrics = true }, 148new() { Name = "api-service", InstanceId = "instance-2", HasLogs = true, HasTraces = true, HasMetrics = true }, 149new() { Name = "worker-service", InstanceId = "instance-1", HasLogs = true, HasTraces = true, HasMetrics = true } 243new() { Name = "api-service", InstanceId = null, HasLogs = true, HasTraces = true, HasMetrics = true } 290new() { Name = "other-resource", InstanceId = null, HasLogs = true, HasTraces = true, HasMetrics = true } 428new() { Name = "api-service", InstanceId = null, HasLogs = true, HasTraces = true, HasMetrics = true }
Mcp\ListTracesToolTests.cs (8)
119new() { Name = "api-service", InstanceId = "instance-1", HasLogs = true, HasTraces = true, HasMetrics = true }, 120new() { Name = "api-service", InstanceId = "instance-2", HasLogs = true, HasTraces = true, HasMetrics = true }, 121new() { Name = "worker-service", InstanceId = "instance-1", HasLogs = true, HasTraces = true, HasMetrics = true } 228new() { Name = "api-service", InstanceId = null, HasLogs = true, HasTraces = true, HasMetrics = true } 275new() { Name = "other-resource", InstanceId = null, HasLogs = true, HasTraces = true, HasMetrics = true } 383new() { Name = "api-service", InstanceId = null, HasLogs = true, HasTraces = true, HasMetrics = true }, 384new() { Name = "worker-service", InstanceId = null, HasLogs = true, HasTraces = true, HasMetrics = true } 470new() { Name = "api-service", InstanceId = null, HasLogs = true, HasTraces = true, HasMetrics = true }
22 references to ResourceInfoJson
aspire (5)
Commands\TelemetryCommandHelpers.cs (3)
475IList<ResourceInfoJson> resources, 505public static async Task<ResourceInfoJson[]> GetAllResourcesAsync(HttpClient client, string baseUrl, CancellationToken cancellationToken) 626public static IReadOnlyList<IOtlpResource> ToOtlpResources(IList<ResourceInfoJson> resources)
src\Shared\Otlp\Serialization\OtlpJsonSerializerContext.cs (2)
72[JsonSerializable(typeof(ResourceInfoJson))] 73[JsonSerializable(typeof(ResourceInfoJson[]))]
Aspire.Cli.Tests (17)
Commands\ExportCommandTests.cs (1)
867ResourceInfoJson[] resources,
Commands\TelemetryCommandTests.cs (4)
157var resources = new ResourceInfoJson[] 195var resources = new ResourceInfoJson[] 210var resources = new ResourceInfoJson[] 225var resources = new ResourceInfoJson[]
Commands\TelemetryTestHelper.cs (1)
67ResourceInfoJson[] resources,
Commands\TelemetryTracesCommandTests.cs (1)
45new ResourceInfoJson[] { new() { Name = "frontend", InstanceId = null } },
Mcp\ExcludeFromMcpTests.cs (1)
552ResourceInfoJson[] resources,
Mcp\ListStructuredLogsToolTests.cs (4)
145var resources = new ResourceInfoJson[] 241var resources = new ResourceInfoJson[] 288var resources = new ResourceInfoJson[] 426var resources = new ResourceInfoJson[]
Mcp\ListTracesToolTests.cs (5)
117var resources = new ResourceInfoJson[] 226var resources = new ResourceInfoJson[] 273var resources = new ResourceInfoJson[] 381var resources = new ResourceInfoJson[] 468var resources = new ResourceInfoJson[]