3 writes to ExpandedTargetTypes
Aspire.Hosting.RemoteHost (3)
AtsCapabilityScanner.cs (3)
750capability.ExpandedTargetTypes = []; 757capability.ExpandedTargetTypes = compatibleTypes.ToList(); 768capability.ExpandedTargetTypes = [targetTypeRef];
33 references to ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Go (3)
AtsGoCodeGenerator.cs (3)
558foreach (var expandedType in capability.ExpandedTargetTypes) 598var targetTypes = capability.ExpandedTargetTypes.Count > 0 599? capability.ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Java (3)
AtsJavaCodeGenerator.cs (3)
528foreach (var expandedType in capability.ExpandedTargetTypes) 568var targetTypes = capability.ExpandedTargetTypes.Count > 0 569? capability.ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Python (3)
AtsPythonCodeGenerator.cs (3)
435foreach (var expandedType in capability.ExpandedTargetTypes) 473var targetTypes = capability.ExpandedTargetTypes.Count > 0 474? capability.ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Rust (3)
AtsRustCodeGenerator.cs (3)
636foreach (var expandedType in capability.ExpandedTargetTypes) 676var targetTypes = capability.ExpandedTargetTypes.Count > 0 677? capability.ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.TypeScript (1)
AtsTypeScriptCodeGenerator.cs (1)
2556var expandedTypes = cap.ExpandedTargetTypes;
Aspire.Hosting.CodeGeneration.TypeScript.Tests (17)
AtsTypeScriptCodeGeneratorTests.cs (17)
251Assert.NotNull(withOptionalString.ExpandedTargetTypes); 252var testRedisTarget = withOptionalString.ExpandedTargetTypes.FirstOrDefault(t => 390c.ExpandedTargetTypes.Any(t => t.TypeId.Contains("ContainerResource"))) 396ExpandedTargetTypes = c.ExpandedTargetTypes 436foreach (var expandedType in cap.ExpandedTargetTypes) 497Assert.NotEmpty(withConnectionStringDirect.ExpandedTargetTypes); 500var testRedisExpanded = withConnectionStringDirect.ExpandedTargetTypes 525Assert.NotEmpty(withRedisSpecific.ExpandedTargetTypes); 528var testRedisExpanded = withRedisSpecific.ExpandedTargetTypes 551Assert.NotEmpty(withBindMount.ExpandedTargetTypes); 554var containerExpanded = withBindMount.ExpandedTargetTypes 647Assert.NotEmpty(withConnectionStringDirect.ExpandedTargetTypes); 650foreach (var expandedType in withConnectionStringDirect.ExpandedTargetTypes) 682Assert.NotEmpty(testWithEnvironmentCallback.ExpandedTargetTypes); 685var testRedisExpanded = testWithEnvironmentCallback.ExpandedTargetTypes 1419var expandedTypeIds = withNpm.ExpandedTargetTypes.Select(t => t.TypeId).ToList(); 1450var expandedTypeIds = capability.ExpandedTargetTypes.Select(t => t.TypeId).ToList();
Aspire.Hosting.RemoteHost (3)
AtsCapabilityScanner.cs (2)
845.Where(c => c.ExpandedTargetTypes.Count > 0) 846.SelectMany(c => c.ExpandedTargetTypes.Select(t => (Target: t.TypeId, Capability: c)))
CodeGeneration\CodeGenerationService.cs (1)
76ExpandedTargetTypes = c.ExpandedTargetTypes.Select(MapTypeRef).ToList()