19 writes to ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Python (1)
AtsPythonCodeGenerator.cs (1)
406ExpandedTargetTypes = shortest.ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Python.Tests (3)
AtsPythonCodeGeneratorTests.cs (3)
424ExpandedTargetTypes = [resourceType], 480ExpandedTargetTypes = [resourceType], 551ExpandedTargetTypes = [resourceType],
Aspire.Hosting.CodeGeneration.TypeScript.Tests (8)
AtsTypeScriptCodeGeneratorTests.cs (8)
1552ExpandedTargetTypes = addTestRedis.ExpandedTargetTypes, 2439ExpandedTargetTypes = [], 2451ExpandedTargetTypes = [], 2463ExpandedTargetTypes = [], 2475ExpandedTargetTypes = [], 2735ExpandedTargetTypes = [], 2875ExpandedTargetTypes = [], 2917ExpandedTargetTypes = [],
Aspire.Hosting.RemoteHost (5)
AtsCapabilityScanner.cs (4)
841capability.ExpandedTargetTypes = []; 848capability.ExpandedTargetTypes = compatibleTypes.ToList(); 859capability.ExpandedTargetTypes = [targetTypeRef]; 1010capability.ExpandedTargetTypes = capability.ExpandedTargetTypes
AtsContextFilter.cs (1)
352ExpandedTargetTypes = capability.ExpandedTargetTypes,
Aspire.Hosting.RemoteHost.Tests (2)
AtsContextFilterTests.cs (2)
550ExpandedTargetTypes = [] 566ExpandedTargetTypes = []
42 references to ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Go (3)
AtsGoCodeGenerator.cs (3)
181foreach (var expanded in capability.ExpandedTargetTypes) 424var targetTypes = capability.ExpandedTargetTypes.Count > 0 425? capability.ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Java (3)
AtsJavaCodeGenerator.cs (3)
2360foreach (var expandedType in capability.ExpandedTargetTypes) 2431var targetTypes = capability.ExpandedTargetTypes.Count > 0 2432? capability.ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Python (2)
AtsPythonCodeGenerator.cs (2)
406ExpandedTargetTypes = shortest.ExpandedTargetTypes 1862var expandedTypes = cap.ExpandedTargetTypes;
Aspire.Hosting.CodeGeneration.Rust (3)
AtsRustCodeGenerator.cs (3)
805foreach (var expandedType in capability.ExpandedTargetTypes) 850var targetTypes = capability.ExpandedTargetTypes.Count > 0 851? capability.ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.TypeScript (1)
TypeScriptApiProjector.cs (1)
2603var expandedTypes = cap.ExpandedTargetTypes;
Aspire.Hosting.CodeGeneration.TypeScript.Tests (18)
AtsTypeScriptCodeGeneratorTests.cs (18)
405Assert.NotNull(withOptionalString.ExpandedTargetTypes); 406var testRedisTarget = withOptionalString.ExpandedTargetTypes.FirstOrDefault(t => 559c.ExpandedTargetTypes.Any(t => t.TypeId.Contains("ContainerResource"))) 565ExpandedTargetTypes = c.ExpandedTargetTypes 605foreach (var expandedType in cap.ExpandedTargetTypes) 666Assert.NotEmpty(withConnectionStringDirect.ExpandedTargetTypes); 669var testRedisExpanded = withConnectionStringDirect.ExpandedTargetTypes 694Assert.NotEmpty(withRedisSpecific.ExpandedTargetTypes); 697var testRedisExpanded = withRedisSpecific.ExpandedTargetTypes 720Assert.NotEmpty(withBindMount.ExpandedTargetTypes); 723var containerExpanded = withBindMount.ExpandedTargetTypes 835Assert.NotEmpty(withConnectionStringDirect.ExpandedTargetTypes); 838foreach (var expandedType in withConnectionStringDirect.ExpandedTargetTypes) 870Assert.NotEmpty(testWithEnvironmentCallback.ExpandedTargetTypes); 873var testRedisExpanded = testWithEnvironmentCallback.ExpandedTargetTypes 1552ExpandedTargetTypes = addTestRedis.ExpandedTargetTypes, 2259var expandedTypeIds = withNpm.ExpandedTargetTypes.Select(t => t.TypeId).ToList(); 2290var expandedTypeIds = capability.ExpandedTargetTypes.Select(t => t.TypeId).ToList();
Aspire.Hosting.RemoteHost (8)
AtsCapabilityScanner.cs (4)
938.Where(c => c.ExpandedTargetTypes.Count > 0) 939.SelectMany(c => c.ExpandedTargetTypes.Select(t => (Target: t.TypeId, Capability: c))) 1010capability.ExpandedTargetTypes = capability.ExpandedTargetTypes 1018(c.TargetTypeId is not null && c.ExpandedTargetTypes.Count == 0));
AtsContextFilter.cs (3)
177foreach (var expandedTargetType in capability.ExpandedTargetTypes) 252foreach (var expandedTargetType in capability.ExpandedTargetTypes) 352ExpandedTargetTypes = capability.ExpandedTargetTypes,
CodeGeneration\CodeGenerationService.cs (1)
118ExpandedTargetTypes = c.ExpandedTargetTypes.Select(MapTypeRef).ToList()
Aspire.Hosting.RemoteHost.Tests (4)
AtsCapabilityScannerTests.cs (4)
423Assert.Contains(baseNameCapability.ExpandedTargetTypes, 503Assert.DoesNotContain(genericCapability.ExpandedTargetTypes, t => t.TypeId == shadowedTypeId); 504Assert.Contains(genericCapability.ExpandedTargetTypes, t => t.TypeId == otherTypeId); 505Assert.Contains(specificCapability.ExpandedTargetTypes, t => t.TypeId == shadowedTypeId);