28 writes to ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Java.Tests (6)
AtsJavaCodeGeneratorTests.cs (6)
2796ExpandedTargetTypes = [resourceType], 2828ExpandedTargetTypes = [resourceType], 2870ExpandedTargetTypes = [resourceType], 3067ExpandedTargetTypes = [resourceType], 3384ExpandedTargetTypes = [resourceType], 3708ExpandedTargetTypes = [resourceType],
Aspire.Hosting.CodeGeneration.Python (1)
AtsPythonCodeGenerator.cs (1)
425ExpandedTargetTypes = shortest.ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Python.Tests (5)
AtsPythonCodeGeneratorTests.cs (5)
532ExpandedTargetTypes = [resourceType], 588ExpandedTargetTypes = [resourceType], 659ExpandedTargetTypes = [resourceType], 843ExpandedTargetTypes = [projectType], 864ExpandedTargetTypes = [containerType],
Aspire.Hosting.CodeGeneration.TypeScript.Tests (8)
AtsTypeScriptCodeGeneratorTests.cs (8)
1880ExpandedTargetTypes = addTestRedis.ExpandedTargetTypes, 2856ExpandedTargetTypes = [], 2868ExpandedTargetTypes = [], 2880ExpandedTargetTypes = [], 2892ExpandedTargetTypes = [], 3152ExpandedTargetTypes = [], 3292ExpandedTargetTypes = [], 3334ExpandedTargetTypes = [],
Aspire.Hosting.RemoteHost (6)
Ats\ExternalCapabilityRegistry.cs (1)
774ExpandedTargetTypes = capability.ExpandedTargetTypes?.Select(CreateTypeRef).ToList() ?? [],
AtsCapabilityScanner.cs (4)
915capability.ExpandedTargetTypes = []; 922capability.ExpandedTargetTypes = compatibleTypes.ToList(); 933capability.ExpandedTargetTypes = [targetTypeRef]; 1084capability.ExpandedTargetTypes = capability.ExpandedTargetTypes
AtsContextFilter.cs (1)
353ExpandedTargetTypes = 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)
2441foreach (var expandedType in capability.ExpandedTargetTypes) 2512var targetTypes = capability.ExpandedTargetTypes.Count > 0 2513? capability.ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Python (2)
AtsPythonCodeGenerator.cs (2)
425ExpandedTargetTypes = shortest.ExpandedTargetTypes 1939var 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)
2680var expandedTypes = cap.ExpandedTargetTypes;
Aspire.Hosting.CodeGeneration.TypeScript.Tests (18)
AtsTypeScriptCodeGeneratorTests.cs (18)
513Assert.NotNull(withOptionalString.ExpandedTargetTypes); 514var testRedisTarget = withOptionalString.ExpandedTargetTypes.FirstOrDefault(t => 666c.ExpandedTargetTypes.Any(t => t.TypeId.Contains("ContainerResource"))) 672ExpandedTargetTypes = c.ExpandedTargetTypes 712foreach (var expandedType in cap.ExpandedTargetTypes) 773Assert.NotEmpty(withConnectionStringDirect.ExpandedTargetTypes); 776var testRedisExpanded = withConnectionStringDirect.ExpandedTargetTypes 801Assert.NotEmpty(withRedisSpecific.ExpandedTargetTypes); 804var testRedisExpanded = withRedisSpecific.ExpandedTargetTypes 827Assert.NotEmpty(withBindMount.ExpandedTargetTypes); 830var containerExpanded = withBindMount.ExpandedTargetTypes 1054Assert.NotEmpty(withConnectionStringDirect.ExpandedTargetTypes); 1057foreach (var expandedType in withConnectionStringDirect.ExpandedTargetTypes) 1089Assert.NotEmpty(testWithEnvironmentCallback.ExpandedTargetTypes); 1092var testRedisExpanded = testWithEnvironmentCallback.ExpandedTargetTypes 1880ExpandedTargetTypes = addTestRedis.ExpandedTargetTypes, 2644var expandedTypeIds = withNpm.ExpandedTargetTypes.Select(t => t.TypeId).ToList(); 2675var expandedTypeIds = capability.ExpandedTargetTypes.Select(t => t.TypeId).ToList();
Aspire.Hosting.RemoteHost (8)
AtsCapabilityScanner.cs (4)
1012.Where(c => c.ExpandedTargetTypes.Count > 0) 1013.SelectMany(c => c.ExpandedTargetTypes.Select(t => (Target: t.TypeId, Capability: c))) 1084capability.ExpandedTargetTypes = capability.ExpandedTargetTypes 1092(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);