35 writes to ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Go.Tests (3)
AtsGoDerivedBuilderTests.cs (1)
678ExpandedTargetTypes = expandedTargets,
GoDocCommentTests.cs (1)
511ExpandedTargetTypes = [resourceType],
GoGeneratorEscapingTests.cs (1)
246ExpandedTargetTypes = [resourceType],
Aspire.Hosting.CodeGeneration.Java.Tests (6)
AtsJavaCodeGeneratorTests.cs (6)
2796ExpandedTargetTypes = [resourceType], 2828ExpandedTargetTypes = [resourceType], 2870ExpandedTargetTypes = [resourceType], 3077ExpandedTargetTypes = [resourceType], 3428ExpandedTargetTypes = [resourceType], 3752ExpandedTargetTypes = [resourceType],
Aspire.Hosting.CodeGeneration.Python (1)
AtsPythonCodeGenerator.cs (1)
430ExpandedTargetTypes = shortest.ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Python.Tests (5)
AtsPythonCodeGeneratorTests.cs (5)
902ExpandedTargetTypes = [resourceType], 958ExpandedTargetTypes = [resourceType], 1029ExpandedTargetTypes = [resourceType], 1213ExpandedTargetTypes = [projectType], 1234ExpandedTargetTypes = [containerType],
Aspire.Hosting.CodeGeneration.TypeScript.Tests (8)
AtsTypeScriptCodeGeneratorTests.cs (8)
2039ExpandedTargetTypes = addTestRedis.ExpandedTargetTypes, 3039ExpandedTargetTypes = [], 3051ExpandedTargetTypes = [], 3063ExpandedTargetTypes = [], 3075ExpandedTargetTypes = [], 3335ExpandedTargetTypes = [], 3475ExpandedTargetTypes = [], 3517ExpandedTargetTypes = [],
Aspire.Hosting.Native.CodeGeneration (4)
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (4)
915capability.ExpandedTargetTypes = []; 922capability.ExpandedTargetTypes = compatibleTypes.ToList(); 933capability.ExpandedTargetTypes = [targetTypeRef]; 1084capability.ExpandedTargetTypes = capability.ExpandedTargetTypes
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 = []
47 references to ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Go (4)
AtsGoCodeGenerator.ApiProjection.cs (1)
1061foreach (var expandedTargetType in capability.ExpandedTargetTypes)
AtsGoCodeGenerator.cs (3)
217foreach (var expanded in capability.ExpandedTargetTypes) 556var targetTypes = capability.ExpandedTargetTypes.Count > 0 557? capability.ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Java (3)
AtsJavaCodeGenerator.cs (3)
2442foreach (var expandedType in capability.ExpandedTargetTypes) 2513var targetTypes = capability.ExpandedTargetTypes.Count > 0 2514? capability.ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Python (2)
AtsPythonCodeGenerator.cs (2)
430ExpandedTargetTypes = shortest.ExpandedTargetTypes 1956var expandedTypes = cap.ExpandedTargetTypes;
Aspire.Hosting.CodeGeneration.Rust (3)
AtsRustCodeGenerator.cs (3)
807foreach (var expandedType in capability.ExpandedTargetTypes) 852var targetTypes = capability.ExpandedTargetTypes.Count > 0 853? capability.ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.TypeScript (1)
TypeScriptApiProjector.cs (1)
2680var expandedTypes = cap.ExpandedTargetTypes;
Aspire.Hosting.CodeGeneration.TypeScript.Tests (18)
AtsTypeScriptCodeGeneratorTests.cs (18)
521Assert.NotNull(withOptionalString.ExpandedTargetTypes); 522var testRedisTarget = withOptionalString.ExpandedTargetTypes.FirstOrDefault(t => 728c.ExpandedTargetTypes.Any(t => t.TypeId.Contains("ContainerResource"))) 734ExpandedTargetTypes = c.ExpandedTargetTypes 774foreach (var expandedType in cap.ExpandedTargetTypes) 835Assert.NotEmpty(withConnectionStringDirect.ExpandedTargetTypes); 838var testRedisExpanded = withConnectionStringDirect.ExpandedTargetTypes 863Assert.NotEmpty(withRedisSpecific.ExpandedTargetTypes); 866var testRedisExpanded = withRedisSpecific.ExpandedTargetTypes 889Assert.NotEmpty(withBindMount.ExpandedTargetTypes); 892var containerExpanded = withBindMount.ExpandedTargetTypes 1116Assert.NotEmpty(withConnectionStringDirect.ExpandedTargetTypes); 1119foreach (var expandedType in withConnectionStringDirect.ExpandedTargetTypes) 1151Assert.NotEmpty(testWithEnvironmentCallback.ExpandedTargetTypes); 1154var testRedisExpanded = testWithEnvironmentCallback.ExpandedTargetTypes 2039ExpandedTargetTypes = addTestRedis.ExpandedTargetTypes, 2827var expandedTypeIds = withNpm.ExpandedTargetTypes.Select(t => t.TypeId).ToList(); 2858var expandedTypeIds = capability.ExpandedTargetTypes.Select(t => t.TypeId).ToList();
Aspire.Hosting.Native.CodeGeneration (4)
src\Aspire.Hosting.RemoteHost\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));
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);