35 writes to ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Go.Tests (3)
AtsGoDerivedBuilderTests.cs (1)
679ExpandedTargetTypes = expandedTargets,
GoDocCommentTests.cs (1)
601ExpandedTargetTypes = [resourceType],
GoGeneratorEscapingTests.cs (1)
272ExpandedTargetTypes = [resourceType],
Aspire.Hosting.CodeGeneration.Java.Tests (6)
AtsJavaCodeGeneratorTests.cs (6)
3018ExpandedTargetTypes = [resourceType], 3050ExpandedTargetTypes = [resourceType], 3092ExpandedTargetTypes = [resourceType], 3299ExpandedTargetTypes = [resourceType], 3650ExpandedTargetTypes = [resourceType], 3974ExpandedTargetTypes = [resourceType],
Aspire.Hosting.CodeGeneration.Python (1)
AtsPythonCodeGenerator.cs (1)
430ExpandedTargetTypes = shortest.ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Python.Tests (5)
AtsPythonCodeGeneratorTests.cs (5)
894ExpandedTargetTypes = [resourceType], 950ExpandedTargetTypes = [resourceType], 1021ExpandedTargetTypes = [resourceType], 1205ExpandedTargetTypes = [projectType], 1226ExpandedTargetTypes = [containerType],
Aspire.Hosting.CodeGeneration.TypeScript.Tests (8)
AtsTypeScriptCodeGeneratorTests.cs (8)
2147ExpandedTargetTypes = addTestRedis.ExpandedTargetTypes, 3152ExpandedTargetTypes = [], 3164ExpandedTargetTypes = [], 3176ExpandedTargetTypes = [], 3188ExpandedTargetTypes = [], 3448ExpandedTargetTypes = [], 3588ExpandedTargetTypes = [], 3630ExpandedTargetTypes = [],
Aspire.Hosting.Native.CodeGeneration (4)
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (4)
921capability.ExpandedTargetTypes = []; 928capability.ExpandedTargetTypes = compatibleTypes.ToList(); 939capability.ExpandedTargetTypes = [targetTypeRef]; 1090capability.ExpandedTargetTypes = capability.ExpandedTargetTypes
Aspire.Hosting.RemoteHost (6)
Ats\ExternalCapabilityRegistry.cs (1)
774ExpandedTargetTypes = capability.ExpandedTargetTypes?.Select(CreateTypeRef).ToList() ?? [],
AtsCapabilityScanner.cs (4)
921capability.ExpandedTargetTypes = []; 928capability.ExpandedTargetTypes = compatibleTypes.ToList(); 939capability.ExpandedTargetTypes = [targetTypeRef]; 1090capability.ExpandedTargetTypes = capability.ExpandedTargetTypes
AtsContextFilter.cs (1)
353ExpandedTargetTypes = capability.ExpandedTargetTypes,
Aspire.Hosting.RemoteHost.Tests (2)
AtsContextFilterTests.cs (2)
550ExpandedTargetTypes = [] 566ExpandedTargetTypes = []
49 references to ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Go (5)
AtsGoCodeGenerator.ApiProjection.cs (1)
1219foreach (var expandedTargetType in capability.ExpandedTargetTypes)
AtsGoCodeGenerator.cs (4)
137foreach (var expandedTarget in capability.ExpandedTargetTypes) 443foreach (var expanded in capability.ExpandedTargetTypes) 827var targetTypes = capability.ExpandedTargetTypes.Count > 0 828? capability.ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Java (3)
AtsJavaCodeGenerator.cs (3)
2442foreach (var expandedType in capability.ExpandedTargetTypes) 2513var targetTypes = capability.ExpandedTargetTypes.Count > 0 2514? capability.ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Python (2)
AtsPythonCodeGenerator.cs (2)
430ExpandedTargetTypes = shortest.ExpandedTargetTypes 1956var expandedTypes = cap.ExpandedTargetTypes;
Aspire.Hosting.CodeGeneration.Rust (3)
AtsRustCodeGenerator.cs (3)
807foreach (var expandedType in capability.ExpandedTargetTypes) 852var targetTypes = capability.ExpandedTargetTypes.Count > 0 853? capability.ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.TypeScript (1)
TypeScriptApiProjector.cs (1)
2680var expandedTypes = cap.ExpandedTargetTypes;
Aspire.Hosting.CodeGeneration.TypeScript.Tests (19)
AtsTypeScriptCodeGeneratorTests.cs (19)
520Assert.NotNull(withOptionalString.ExpandedTargetTypes); 521var testRedisTarget = withOptionalString.ExpandedTargetTypes.FirstOrDefault(t => 746c.ExpandedTargetTypes.Any(t => t.TypeId.Contains("ContainerResource"))) 752ExpandedTargetTypes = c.ExpandedTargetTypes 792foreach (var expandedType in cap.ExpandedTargetTypes) 853Assert.NotEmpty(withConnectionStringDirect.ExpandedTargetTypes); 856var testRedisExpanded = withConnectionStringDirect.ExpandedTargetTypes 881Assert.NotEmpty(withRedisSpecific.ExpandedTargetTypes); 884var testRedisExpanded = withRedisSpecific.ExpandedTargetTypes 907Assert.NotEmpty(withBindMount.ExpandedTargetTypes); 910var containerExpanded = withBindMount.ExpandedTargetTypes 1134Assert.NotEmpty(withConnectionStringDirect.ExpandedTargetTypes); 1137foreach (var expandedType in withConnectionStringDirect.ExpandedTargetTypes) 1169Assert.NotEmpty(testWithEnvironmentCallback.ExpandedTargetTypes); 1172var testRedisExpanded = testWithEnvironmentCallback.ExpandedTargetTypes 1348capability.ExpandedTargetTypes.Select(t => t.TypeId).Order(StringComparer.Ordinal)); 2147ExpandedTargetTypes = addTestRedis.ExpandedTargetTypes, 2935var expandedTypeIds = withNpm.ExpandedTargetTypes.Select(t => t.TypeId).ToList(); 2966var expandedTypeIds = capability.ExpandedTargetTypes.Select(t => t.TypeId).ToList();
Aspire.Hosting.Native.CodeGeneration (4)
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (4)
1018.Where(c => c.ExpandedTargetTypes.Count > 0) 1019.SelectMany(c => c.ExpandedTargetTypes.Select(t => (Target: t.TypeId, Capability: c))) 1090capability.ExpandedTargetTypes = capability.ExpandedTargetTypes 1098(c.TargetTypeId is not null && c.ExpandedTargetTypes.Count == 0));
Aspire.Hosting.RemoteHost (8)
AtsCapabilityScanner.cs (4)
1018.Where(c => c.ExpandedTargetTypes.Count > 0) 1019.SelectMany(c => c.ExpandedTargetTypes.Select(t => (Target: t.TypeId, Capability: c))) 1090capability.ExpandedTargetTypes = capability.ExpandedTargetTypes 1098(c.TargetTypeId is not null && c.ExpandedTargetTypes.Count == 0));
AtsContextFilter.cs (3)
177foreach (var expandedTargetType in capability.ExpandedTargetTypes) 252foreach (var expandedTargetType in capability.ExpandedTargetTypes) 353ExpandedTargetTypes = capability.ExpandedTargetTypes,
CodeGeneration\CodeGenerationService.cs (1)
127ExpandedTargetTypes = c.ExpandedTargetTypes.Select(MapTypeRef).ToList()
Aspire.Hosting.RemoteHost.Tests (4)
AtsCapabilityScannerTests.cs (4)
471Assert.Contains(baseNameCapability.ExpandedTargetTypes, 627Assert.DoesNotContain(genericCapability.ExpandedTargetTypes, t => t.TypeId == shadowedTypeId); 628Assert.Contains(genericCapability.ExpandedTargetTypes, t => t.TypeId == otherTypeId); 629Assert.Contains(specificCapability.ExpandedTargetTypes, t => t.TypeId == shadowedTypeId);