37 writes to TargetType
Aspire.Hosting.CodeGeneration.Go.Tests (3)
AtsGoDerivedBuilderTests.cs (1)
676TargetType = target,
GoDocCommentTests.cs (1)
509TargetType = resourceType,
GoGeneratorEscapingTests.cs (1)
244TargetType = resourceType,
Aspire.Hosting.CodeGeneration.Java.Tests (6)
AtsJavaCodeGeneratorTests.cs (6)
2794TargetType = resourceType, 2826TargetType = resourceType, 2868TargetType = resourceType, 3075TargetType = resourceType, 3426TargetType = resourceType, 3750TargetType = resourceType,
Aspire.Hosting.CodeGeneration.Python (1)
AtsPythonCodeGenerator.cs (1)
424TargetType = shortest.TargetType,
Aspire.Hosting.CodeGeneration.Python.Tests (5)
AtsPythonCodeGeneratorTests.cs (5)
900TargetType = resourceType, 956TargetType = resourceType, 1027TargetType = resourceType, 1211TargetType = projectType, 1232TargetType = containerType,
Aspire.Hosting.CodeGeneration.TypeScript.Tests (10)
AtsTypeScriptCodeGeneratorTests.cs (10)
300TargetType = targetType, 312TargetType = targetType, 1746TargetType = distributedApplicationBuilderCapability.TargetType, 2037TargetType = addTestRedis.TargetType, 3038TargetType = targetType, 3050TargetType = targetType, 3062TargetType = targetType, 3074TargetType = targetType, 3334TargetType = targetType, 3474TargetType = targetType,
Aspire.Hosting.Native.CodeGeneration (4)
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (4)
1777TargetType = contextTypeRef, 1830TargetType = contextTypeRef, 1993TargetType = instanceContextTypeRef, 2167TargetType = extendsTypeRef,
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
59 references to TargetType
Aspire.Hosting.CodeGeneration.Go (5)
AtsGoCodeGenerator.ApiProjection.cs (2)
1032return GetOwningAssemblyName(capability.CapabilityId, capability.TargetType?.ClrType?.Assembly.GetName().Name); 1059RegisterTypeOwners(capability.TargetType);
AtsGoCodeGenerator.cs (3)
204CollectHandleTypeIds(handleTypeIds, capability.TargetType); 558: capability.TargetType is not null 559? [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)
733TargetType = c.TargetType != null ? new { c.TargetType.TypeId, c.TargetType.IsInterface } : null, 770Assert.NotNull(cap.TargetType); 771Assert.False(cap.TargetType.IsInterface, 801Assert.NotNull(withBindMount.TargetType); 802Assert.Equal("Aspire.Hosting/Aspire.Hosting.ApplicationModel.ContainerResource", withBindMount.TargetType.TypeId); 803Assert.False(withBindMount.TargetType.IsInterface, 809Assert.NotNull(withEnvironment.TargetType); 810Assert.True(withEnvironment.TargetType.IsInterface, 830Assert.NotNull(withConnectionStringDirect.TargetType); 831Assert.Contains("IResourceWithConnectionString", withConnectionStringDirect.TargetType.TypeId); 832Assert.True(withConnectionStringDirect.TargetType.IsInterface); 858Assert.NotNull(withRedisSpecific.TargetType); 859Assert.Contains("TestRedisResource", withRedisSpecific.TargetType.TypeId); 860Assert.False(withRedisSpecific.TargetType.IsInterface, "TestRedisResource is a concrete type"); 884Assert.NotNull(withBindMount.TargetType); 885Assert.Contains("ContainerResource", withBindMount.TargetType.TypeId); 886Assert.False(withBindMount.TargetType.IsInterface); 1111Assert.NotNull(withConnectionStringDirect.TargetType); 1112Assert.True(withConnectionStringDirect.TargetType.IsInterface, 1145Assert.NotNull(testWithEnvironmentCallback.TargetType); 1146Assert.Contains("IResourceWithEnvironment", testWithEnvironmentCallback.TargetType.TypeId); 1147Assert.True(testWithEnvironmentCallback.TargetType.IsInterface, 1214Assert.False(withVolume.TargetType?.IsInterface); 1230Assert.False(withProjectVolume.TargetType?.IsInterface); 1246Assert.False(withExecutableVolume.TargetType?.IsInterface); 1746TargetType = distributedApplicationBuilderCapability.TargetType, 2037TargetType = addTestRedis.TargetType,
Aspire.Hosting.Native.CodeGeneration (1)
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (1)
927var targetTypeRef = capability.TargetType ?? new AtsTypeRef
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,