30 writes to TargetType
Aspire.Hosting.CodeGeneration.Java.Tests (6)
AtsJavaCodeGeneratorTests.cs (6)
2794TargetType = resourceType, 2826TargetType = resourceType, 2868TargetType = resourceType, 3065TargetType = resourceType, 3382TargetType = resourceType, 3706TargetType = resourceType,
Aspire.Hosting.CodeGeneration.Python (1)
AtsPythonCodeGenerator.cs (1)
419TargetType = shortest.TargetType,
Aspire.Hosting.CodeGeneration.Python.Tests (5)
AtsPythonCodeGeneratorTests.cs (5)
530TargetType = resourceType, 586TargetType = resourceType, 657TargetType = resourceType, 841TargetType = projectType, 862TargetType = containerType,
Aspire.Hosting.CodeGeneration.TypeScript.Tests (10)
AtsTypeScriptCodeGeneratorTests.cs (10)
292TargetType = targetType, 304TargetType = targetType, 1587TargetType = distributedApplicationBuilderCapability.TargetType, 1878TargetType = addTestRedis.TargetType, 2855TargetType = targetType, 2867TargetType = targetType, 2879TargetType = targetType, 2891TargetType = targetType, 3151TargetType = targetType, 3291TargetType = targetType,
Aspire.Hosting.RemoteHost (6)
Ats\ExternalCapabilityRegistry.cs (1)
772TargetType = capability.TargetType is not null ? CreateTypeRef(capability.TargetType) : null,
AtsCapabilityScanner.cs (4)
1777TargetType = contextTypeRef, 1830TargetType = contextTypeRef, 1993TargetType = instanceContextTypeRef, 2167TargetType = extendsTypeRef,
AtsContextFilter.cs (1)
348TargetType = targetType,
Aspire.Hosting.RemoteHost.Tests (2)
AtsContextFilterTests.cs (2)
202TargetType = new AtsTypeRef 541TargetType = new AtsTypeRef
56 references to TargetType
Aspire.Hosting.CodeGeneration.Go (3)
AtsGoCodeGenerator.cs (3)
168CollectHandleTypeIds(handleTypeIds, capability.TargetType); 426: capability.TargetType is not null 427? [capability.TargetType]
Aspire.Hosting.CodeGeneration.Java (4)
AtsJavaCodeGenerator.cs (4)
2427AddHandleTypeIfNeeded(handleTypeIds, capability.TargetType); 2514: capability.TargetType is not null 2515? [capability.TargetType] 2543AddListOrDictTypeIfNeeded(typeIds, capability.TargetType);
Aspire.Hosting.CodeGeneration.Python (6)
AtsPythonCodeGenerator.cs (6)
419TargetType = shortest.TargetType, 1613!IsTargetTypeCoveredByBaseHierarchy(c.TargetType, builder.TargetType)).ToList(); 1616!IsTargetTypeCoveredByBaseHierarchy(c.TargetType, builder.TargetType)).ToList(); 1631!IsTargetTypeCoveredByBaseHierarchy(c.TargetType, builder.TargetType)).ToList(); 1915var targetTypeRef = cap.TargetType; 2050(c.TargetType?.IsInterface == true && implementedInterfaceIds.Contains(c.TargetTypeId!)))
Aspire.Hosting.CodeGeneration.Rust (4)
AtsRustCodeGenerator.cs (4)
791AddHandleTypeIfNeeded(handleTypeIds, capability.TargetType); 852: capability.TargetType is not null 853? [capability.TargetType] 880AddListOrDictTypeIfNeeded(typeIds, capability.TargetType);
Aspire.Hosting.CodeGeneration.TypeScript (2)
TypeScriptApiProjector.cs (2)
1555return GetOwningAssemblyName(capability.CapabilityId, capability.TargetType?.ClrType?.Assembly.GetName().Name); 2658var targetTypeRef = cap.TargetType;
Aspire.Hosting.CodeGeneration.TypeScript.Tests (29)
AtsTypeScriptCodeGeneratorTests.cs (29)
671TargetType = c.TargetType != null ? new { c.TargetType.TypeId, c.TargetType.IsInterface } : null, 708Assert.NotNull(cap.TargetType); 709Assert.False(cap.TargetType.IsInterface, 739Assert.NotNull(withBindMount.TargetType); 740Assert.Equal("Aspire.Hosting/Aspire.Hosting.ApplicationModel.ContainerResource", withBindMount.TargetType.TypeId); 741Assert.False(withBindMount.TargetType.IsInterface, 747Assert.NotNull(withEnvironment.TargetType); 748Assert.True(withEnvironment.TargetType.IsInterface, 768Assert.NotNull(withConnectionStringDirect.TargetType); 769Assert.Contains("IResourceWithConnectionString", withConnectionStringDirect.TargetType.TypeId); 770Assert.True(withConnectionStringDirect.TargetType.IsInterface); 796Assert.NotNull(withRedisSpecific.TargetType); 797Assert.Contains("TestRedisResource", withRedisSpecific.TargetType.TypeId); 798Assert.False(withRedisSpecific.TargetType.IsInterface, "TestRedisResource is a concrete type"); 822Assert.NotNull(withBindMount.TargetType); 823Assert.Contains("ContainerResource", withBindMount.TargetType.TypeId); 824Assert.False(withBindMount.TargetType.IsInterface); 1049Assert.NotNull(withConnectionStringDirect.TargetType); 1050Assert.True(withConnectionStringDirect.TargetType.IsInterface, 1083Assert.NotNull(testWithEnvironmentCallback.TargetType); 1084Assert.Contains("IResourceWithEnvironment", testWithEnvironmentCallback.TargetType.TypeId); 1085Assert.True(testWithEnvironmentCallback.TargetType.IsInterface, 1152Assert.False(withVolume.TargetType?.IsInterface); 1168Assert.False(withProjectVolume.TargetType?.IsInterface); 1184Assert.False(withExecutableVolume.TargetType?.IsInterface); 1587TargetType = distributedApplicationBuilderCapability.TargetType, 1878TargetType = addTestRedis.TargetType,
Aspire.Hosting.RemoteHost (8)
AtsCapabilityScanner.cs (1)
927var targetTypeRef = capability.TargetType ?? new AtsTypeRef
AtsContextFilter.cs (5)
172if (capability.TargetType is { } targetType) 249CollectReferencedType(capability.TargetType, handleTypesById, dtoTypesById, enumTypesById, includedHandleTypeIds, includedDtoTypeIds, includedEnumTypeIds); 317var targetType = capability.TargetType; 516if (capability.TargetType?.ClrType is not null) 518return IsSelectedAssembly(capability.TargetType.ClrType.Assembly, assemblyNames);
CodeGeneration\CodeGenerationService.cs (2)
126TargetType = c.TargetType != null ? MapTypeRef(c.TargetType) : null,