19 writes to TargetType
Aspire.Hosting.CodeGeneration.Python (1)
AtsPythonCodeGenerator.cs (1)
400TargetType = shortest.TargetType,
Aspire.Hosting.CodeGeneration.Python.Tests (3)
AtsPythonCodeGeneratorTests.cs (3)
422TargetType = resourceType, 478TargetType = resourceType, 549TargetType = resourceType,
Aspire.Hosting.CodeGeneration.TypeScript.Tests (8)
AtsTypeScriptCodeGeneratorTests.cs (8)
1276TargetType = distributedApplicationBuilderCapability.TargetType, 1550TargetType = addTestRedis.TargetType, 2438TargetType = targetType, 2450TargetType = targetType, 2462TargetType = targetType, 2474TargetType = targetType, 2734TargetType = targetType, 2874TargetType = targetType,
Aspire.Hosting.RemoteHost (5)
AtsCapabilityScanner.cs (4)
1701TargetType = contextTypeRef, 1753TargetType = contextTypeRef, 1914TargetType = instanceContextTypeRef, 2086TargetType = extendsTypeRef,
AtsContextFilter.cs (1)
347TargetType = targetType,
Aspire.Hosting.RemoteHost.Tests (2)
AtsContextFilterTests.cs (2)
202TargetType = new AtsTypeRef 541TargetType = new AtsTypeRef
53 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)
2346AddHandleTypeIfNeeded(handleTypeIds, capability.TargetType); 2433: capability.TargetType is not null 2434? [capability.TargetType] 2462AddListOrDictTypeIfNeeded(typeIds, capability.TargetType);
Aspire.Hosting.CodeGeneration.Python (6)
AtsPythonCodeGenerator.cs (6)
400TargetType = shortest.TargetType, 1539!IsTargetTypeCoveredByBaseHierarchy(c.TargetType, builder.TargetType)).ToList(); 1542!IsTargetTypeCoveredByBaseHierarchy(c.TargetType, builder.TargetType)).ToList(); 1557!IsTargetTypeCoveredByBaseHierarchy(c.TargetType, builder.TargetType)).ToList(); 1838var targetTypeRef = cap.TargetType; 1973(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)
1551return GetOwningAssemblyName(capability.CapabilityId, capability.TargetType?.ClrType?.Assembly.GetName().Name); 2581var targetTypeRef = cap.TargetType;
Aspire.Hosting.CodeGeneration.TypeScript.Tests (26)
AtsTypeScriptCodeGeneratorTests.cs (26)
564TargetType = c.TargetType != null ? new { c.TargetType.TypeId, c.TargetType.IsInterface } : null, 601Assert.NotNull(cap.TargetType); 602Assert.False(cap.TargetType.IsInterface, 632Assert.NotNull(withBindMount.TargetType); 633Assert.Equal("Aspire.Hosting/Aspire.Hosting.ApplicationModel.ContainerResource", withBindMount.TargetType.TypeId); 634Assert.False(withBindMount.TargetType.IsInterface, 640Assert.NotNull(withEnvironment.TargetType); 641Assert.True(withEnvironment.TargetType.IsInterface, 661Assert.NotNull(withConnectionStringDirect.TargetType); 662Assert.Contains("IResourceWithConnectionString", withConnectionStringDirect.TargetType.TypeId); 663Assert.True(withConnectionStringDirect.TargetType.IsInterface); 689Assert.NotNull(withRedisSpecific.TargetType); 690Assert.Contains("TestRedisResource", withRedisSpecific.TargetType.TypeId); 691Assert.False(withRedisSpecific.TargetType.IsInterface, "TestRedisResource is a concrete type"); 715Assert.NotNull(withBindMount.TargetType); 716Assert.Contains("ContainerResource", withBindMount.TargetType.TypeId); 717Assert.False(withBindMount.TargetType.IsInterface); 830Assert.NotNull(withConnectionStringDirect.TargetType); 831Assert.True(withConnectionStringDirect.TargetType.IsInterface, 864Assert.NotNull(testWithEnvironmentCallback.TargetType); 865Assert.Contains("IResourceWithEnvironment", testWithEnvironmentCallback.TargetType.TypeId); 866Assert.True(testWithEnvironmentCallback.TargetType.IsInterface, 1276TargetType = distributedApplicationBuilderCapability.TargetType, 1550TargetType = addTestRedis.TargetType,
Aspire.Hosting.RemoteHost (8)
AtsCapabilityScanner.cs (1)
853var 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; 515if (capability.TargetType?.ClrType is not null) 517return IsSelectedAssembly(capability.TargetType.ClrType.Assembly, assemblyNames);
CodeGeneration\CodeGenerationService.cs (2)
117TargetType = c.TargetType != null ? MapTypeRef(c.TargetType) : null,