3 writes to ExpandedTargetTypes
Aspire.Hosting (3)
Ats\AtsCapabilityScanner.cs (3)
688capability.ExpandedTargetTypes = []; 695capability.ExpandedTargetTypes = compatibleTypes.ToList(); 706capability.ExpandedTargetTypes = [targetTypeRef];
27 references to ExpandedTargetTypes
Aspire.Hosting (2)
Ats\AtsCapabilityScanner.cs (2)
779.Where(c => c.ExpandedTargetTypes.Count > 0) 780.SelectMany(c => c.ExpandedTargetTypes.Select(t => (Target: t.TypeId, Capability: c)))
Aspire.Hosting.CodeGeneration.Go (2)
AtsGoCodeGenerator.cs (2)
597var targetTypes = capability.ExpandedTargetTypes.Count > 0 598? capability.ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Java (2)
AtsJavaCodeGenerator.cs (2)
564var targetTypes = capability.ExpandedTargetTypes.Count > 0 565? capability.ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Python (2)
AtsPythonCodeGenerator.cs (2)
472var targetTypes = capability.ExpandedTargetTypes.Count > 0 473? capability.ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Rust (2)
AtsRustCodeGenerator.cs (2)
631var targetTypes = capability.ExpandedTargetTypes.Count > 0 632? capability.ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.TypeScript (1)
AtsTypeScriptCodeGenerator.cs (1)
2286var expandedTypes = cap.ExpandedTargetTypes;
Aspire.Hosting.CodeGeneration.TypeScript.Tests (15)
AtsTypeScriptCodeGeneratorTests.cs (15)
230Assert.NotNull(withOptionalString.ExpandedTargetTypes); 231var testRedisTarget = withOptionalString.ExpandedTargetTypes.FirstOrDefault(t => 344c.ExpandedTargetTypes.Any(t => t.TypeId.Contains("ContainerResource"))) 350ExpandedTargetTypes = c.ExpandedTargetTypes 390foreach (var expandedType in cap.ExpandedTargetTypes) 451Assert.NotEmpty(withConnectionStringDirect.ExpandedTargetTypes); 454var testRedisExpanded = withConnectionStringDirect.ExpandedTargetTypes 479Assert.NotEmpty(withRedisSpecific.ExpandedTargetTypes); 482var testRedisExpanded = withRedisSpecific.ExpandedTargetTypes 505Assert.NotEmpty(withBindMount.ExpandedTargetTypes); 508var containerExpanded = withBindMount.ExpandedTargetTypes 601Assert.NotEmpty(withConnectionStringDirect.ExpandedTargetTypes); 604foreach (var expandedType in withConnectionStringDirect.ExpandedTargetTypes) 636Assert.NotEmpty(testWithEnvironmentCallback.ExpandedTargetTypes); 639var testRedisExpanded = testWithEnvironmentCallback.ExpandedTargetTypes
Aspire.Hosting.RemoteHost (1)
CodeGeneration\CodeGenerationService.cs (1)
76ExpandedTargetTypes = c.ExpandedTargetTypes.Select(MapTypeRef).ToList()