3 writes to ExpandedTargetTypes
Aspire.Hosting (3)
Ats\AtsCapabilityScanner.cs (3)
739capability.ExpandedTargetTypes = []; 746capability.ExpandedTargetTypes = compatibleTypes.ToList(); 757capability.ExpandedTargetTypes = [targetTypeRef];
33 references to ExpandedTargetTypes
Aspire.Hosting (2)
Ats\AtsCapabilityScanner.cs (2)
834.Where(c => c.ExpandedTargetTypes.Count > 0) 835.SelectMany(c => c.ExpandedTargetTypes.Select(t => (Target: t.TypeId, Capability: c)))
Aspire.Hosting.CodeGeneration.Go (3)
AtsGoCodeGenerator.cs (3)
562foreach (var expandedType in capability.ExpandedTargetTypes) 603var targetTypes = capability.ExpandedTargetTypes.Count > 0 604? capability.ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Java (3)
AtsJavaCodeGenerator.cs (3)
529foreach (var expandedType in capability.ExpandedTargetTypes) 570var targetTypes = capability.ExpandedTargetTypes.Count > 0 571? capability.ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Python (3)
AtsPythonCodeGenerator.cs (3)
436foreach (var expandedType in capability.ExpandedTargetTypes) 475var targetTypes = capability.ExpandedTargetTypes.Count > 0 476? capability.ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Rust (3)
AtsRustCodeGenerator.cs (3)
637foreach (var expandedType in capability.ExpandedTargetTypes) 678var targetTypes = capability.ExpandedTargetTypes.Count > 0 679? capability.ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.TypeScript (1)
AtsTypeScriptCodeGenerator.cs (1)
2501var expandedTypes = cap.ExpandedTargetTypes;
Aspire.Hosting.CodeGeneration.TypeScript.Tests (17)
AtsTypeScriptCodeGeneratorTests.cs (17)
241Assert.NotNull(withOptionalString.ExpandedTargetTypes); 242var testRedisTarget = withOptionalString.ExpandedTargetTypes.FirstOrDefault(t => 380c.ExpandedTargetTypes.Any(t => t.TypeId.Contains("ContainerResource"))) 386ExpandedTargetTypes = c.ExpandedTargetTypes 426foreach (var expandedType in cap.ExpandedTargetTypes) 487Assert.NotEmpty(withConnectionStringDirect.ExpandedTargetTypes); 490var testRedisExpanded = withConnectionStringDirect.ExpandedTargetTypes 515Assert.NotEmpty(withRedisSpecific.ExpandedTargetTypes); 518var testRedisExpanded = withRedisSpecific.ExpandedTargetTypes 541Assert.NotEmpty(withBindMount.ExpandedTargetTypes); 544var containerExpanded = withBindMount.ExpandedTargetTypes 637Assert.NotEmpty(withConnectionStringDirect.ExpandedTargetTypes); 640foreach (var expandedType in withConnectionStringDirect.ExpandedTargetTypes) 672Assert.NotEmpty(testWithEnvironmentCallback.ExpandedTargetTypes); 675var testRedisExpanded = testWithEnvironmentCallback.ExpandedTargetTypes 1365var expandedTypeIds = withNpm.ExpandedTargetTypes.Select(t => t.TypeId).ToList(); 1396var expandedTypeIds = capability.ExpandedTargetTypes.Select(t => t.TypeId).ToList();
Aspire.Hosting.RemoteHost (1)
CodeGeneration\CodeGenerationService.cs (1)
76ExpandedTargetTypes = c.ExpandedTargetTypes.Select(MapTypeRef).ToList()