27 writes to ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Java.Tests (6)
AtsJavaCodeGeneratorTests.cs (6)
2744ExpandedTargetTypes = [resourceType], 2776ExpandedTargetTypes = [resourceType], 2818ExpandedTargetTypes = [resourceType], 3015ExpandedTargetTypes = [resourceType], 3332ExpandedTargetTypes = [resourceType], 3656ExpandedTargetTypes = [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)
1668ExpandedTargetTypes = addTestRedis.ExpandedTargetTypes, 2588ExpandedTargetTypes = [], 2600ExpandedTargetTypes = [], 2612ExpandedTargetTypes = [], 2624ExpandedTargetTypes = [], 2884ExpandedTargetTypes = [], 3024ExpandedTargetTypes = [], 3066ExpandedTargetTypes = [],
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)
2422foreach (var expandedType in capability.ExpandedTargetTypes) 2493var targetTypes = capability.ExpandedTargetTypes.Count > 0 2494? capability.ExpandedTargetTypes
Aspire.Hosting.CodeGeneration.Python (2)
AtsPythonCodeGenerator.cs (2)
425ExpandedTargetTypes = shortest.ExpandedTargetTypes 1941var 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)
2676var expandedTypes = cap.ExpandedTargetTypes;
Aspire.Hosting.CodeGeneration.TypeScript.Tests (18)
AtsTypeScriptCodeGeneratorTests.cs (18)
408Assert.NotNull(withOptionalString.ExpandedTargetTypes); 409var testRedisTarget = withOptionalString.ExpandedTargetTypes.FirstOrDefault(t => 561c.ExpandedTargetTypes.Any(t => t.TypeId.Contains("ContainerResource"))) 567ExpandedTargetTypes = c.ExpandedTargetTypes 607foreach (var expandedType in cap.ExpandedTargetTypes) 668Assert.NotEmpty(withConnectionStringDirect.ExpandedTargetTypes); 671var testRedisExpanded = withConnectionStringDirect.ExpandedTargetTypes 696Assert.NotEmpty(withRedisSpecific.ExpandedTargetTypes); 699var testRedisExpanded = withRedisSpecific.ExpandedTargetTypes 722Assert.NotEmpty(withBindMount.ExpandedTargetTypes); 725var containerExpanded = withBindMount.ExpandedTargetTypes 893Assert.NotEmpty(withConnectionStringDirect.ExpandedTargetTypes); 896foreach (var expandedType in withConnectionStringDirect.ExpandedTargetTypes) 928Assert.NotEmpty(testWithEnvironmentCallback.ExpandedTargetTypes); 931var testRedisExpanded = testWithEnvironmentCallback.ExpandedTargetTypes 1668ExpandedTargetTypes = addTestRedis.ExpandedTargetTypes, 2376var expandedTypeIds = withNpm.ExpandedTargetTypes.Select(t => t.TypeId).ToList(); 2407var 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)
437Assert.Contains(baseNameCapability.ExpandedTargetTypes, 517Assert.DoesNotContain(genericCapability.ExpandedTargetTypes, t => t.TypeId == shadowedTypeId); 518Assert.Contains(genericCapability.ExpandedTargetTypes, t => t.TypeId == otherTypeId); 519Assert.Contains(specificCapability.ExpandedTargetTypes, t => t.TypeId == shadowedTypeId);