37 writes to TargetType
Aspire.Hosting.CodeGeneration.Go.Tests (3)
AtsGoDerivedBuilderTests.cs (1)
677TargetType = target,
GoDocCommentTests.cs (1)
599TargetType = resourceType,
GoGeneratorEscapingTests.cs (1)
270TargetType = resourceType,
Aspire.Hosting.CodeGeneration.Java.Tests (6)
AtsJavaCodeGeneratorTests.cs (6)
3016TargetType = resourceType, 3048TargetType = resourceType, 3090TargetType = resourceType, 3297TargetType = resourceType, 3648TargetType = resourceType, 3972TargetType = resourceType,
Aspire.Hosting.CodeGeneration.Python (1)
AtsPythonCodeGenerator.cs (1)
424TargetType = shortest.TargetType,
Aspire.Hosting.CodeGeneration.Python.Tests (5)
AtsPythonCodeGeneratorTests.cs (5)
892TargetType = resourceType, 948TargetType = resourceType, 1019TargetType = resourceType, 1203TargetType = projectType, 1224TargetType = containerType,
Aspire.Hosting.CodeGeneration.TypeScript.Tests (10)
AtsTypeScriptCodeGeneratorTests.cs (10)
299TargetType = targetType, 311TargetType = targetType, 1831TargetType = distributedApplicationBuilderCapability.TargetType, 2145TargetType = addTestRedis.TargetType, 3151TargetType = targetType, 3163TargetType = targetType, 3175TargetType = targetType, 3187TargetType = targetType, 3447TargetType = targetType, 3587TargetType = targetType,
Aspire.Hosting.Native.CodeGeneration (4)
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (4)
1790TargetType = contextTypeRef, 1843TargetType = contextTypeRef, 2006TargetType = instanceContextTypeRef, 2180TargetType = extendsTypeRef,
Aspire.Hosting.RemoteHost (6)
Ats\ExternalCapabilityRegistry.cs (1)
772TargetType = capability.TargetType is not null ? CreateTypeRef(capability.TargetType) : null,
AtsCapabilityScanner.cs (4)
1790TargetType = contextTypeRef, 1843TargetType = contextTypeRef, 2006TargetType = instanceContextTypeRef, 2180TargetType = extendsTypeRef,
AtsContextFilter.cs (1)
348TargetType = targetType,
Aspire.Hosting.RemoteHost.Tests (2)
AtsContextFilterTests.cs (2)
202TargetType = new AtsTypeRef 541TargetType = new AtsTypeRef
60 references to TargetType
Aspire.Hosting.CodeGeneration.Go (6)
AtsGoCodeGenerator.ApiProjection.cs (2)
1190return GetOwningAssemblyName(capability.CapabilityId, capability.TargetType?.ClrType?.Assembly.GetName().Name); 1217RegisterTypeOwners(capability.TargetType);
AtsGoCodeGenerator.cs (4)
135CollectRequiredType(capability.TargetType, requiredTypeIds); 430CollectHandleTypeIds(handleTypeIds, capability.TargetType); 829: capability.TargetType is not null 830? [capability.TargetType]
Aspire.Hosting.CodeGeneration.Java (4)
AtsJavaCodeGenerator.cs (4)
2428AddHandleTypeIfNeeded(handleTypeIds, capability.TargetType); 2515: capability.TargetType is not null 2516? [capability.TargetType] 2544AddListOrDictTypeIfNeeded(typeIds, capability.TargetType);
Aspire.Hosting.CodeGeneration.Python (6)
AtsPythonCodeGenerator.cs (6)
424TargetType = shortest.TargetType, 1630!IsTargetTypeCoveredByBaseHierarchy(c.TargetType, builder.TargetType)).ToList(); 1633!IsTargetTypeCoveredByBaseHierarchy(c.TargetType, builder.TargetType)).ToList(); 1648!IsTargetTypeCoveredByBaseHierarchy(c.TargetType, builder.TargetType)).ToList(); 1932var targetTypeRef = cap.TargetType; 2067(c.TargetType?.IsInterface == true && implementedInterfaceIds.Contains(c.TargetTypeId!)))
Aspire.Hosting.CodeGeneration.Rust (4)
AtsRustCodeGenerator.cs (4)
793AddHandleTypeIfNeeded(handleTypeIds, capability.TargetType); 854: capability.TargetType is not null 855? [capability.TargetType] 882AddListOrDictTypeIfNeeded(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)
751TargetType = c.TargetType != null ? new { c.TargetType.TypeId, c.TargetType.IsInterface } : null, 788Assert.NotNull(cap.TargetType); 789Assert.False(cap.TargetType.IsInterface, 819Assert.NotNull(withBindMount.TargetType); 820Assert.Equal("Aspire.Hosting/Aspire.Hosting.ApplicationModel.ContainerResource", withBindMount.TargetType.TypeId); 821Assert.False(withBindMount.TargetType.IsInterface, 827Assert.NotNull(withEnvironment.TargetType); 828Assert.True(withEnvironment.TargetType.IsInterface, 848Assert.NotNull(withConnectionStringDirect.TargetType); 849Assert.Contains("IResourceWithConnectionString", withConnectionStringDirect.TargetType.TypeId); 850Assert.True(withConnectionStringDirect.TargetType.IsInterface); 876Assert.NotNull(withRedisSpecific.TargetType); 877Assert.Contains("TestRedisResource", withRedisSpecific.TargetType.TypeId); 878Assert.False(withRedisSpecific.TargetType.IsInterface, "TestRedisResource is a concrete type"); 902Assert.NotNull(withBindMount.TargetType); 903Assert.Contains("ContainerResource", withBindMount.TargetType.TypeId); 904Assert.False(withBindMount.TargetType.IsInterface); 1129Assert.NotNull(withConnectionStringDirect.TargetType); 1130Assert.True(withConnectionStringDirect.TargetType.IsInterface, 1163Assert.NotNull(testWithEnvironmentCallback.TargetType); 1164Assert.Contains("IResourceWithEnvironment", testWithEnvironmentCallback.TargetType.TypeId); 1165Assert.True(testWithEnvironmentCallback.TargetType.IsInterface, 1232Assert.False(withVolume.TargetType?.IsInterface); 1248Assert.False(withProjectVolume.TargetType?.IsInterface); 1264Assert.False(withExecutableVolume.TargetType?.IsInterface); 1831TargetType = distributedApplicationBuilderCapability.TargetType, 2145TargetType = addTestRedis.TargetType,
Aspire.Hosting.Native.CodeGeneration (1)
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (1)
933var targetTypeRef = capability.TargetType ?? new AtsTypeRef
Aspire.Hosting.RemoteHost (8)
AtsCapabilityScanner.cs (1)
933var 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,