27 writes to TargetType
Aspire.Hosting.CodeGeneration.Java.Tests (6)
AtsJavaCodeGeneratorTests.cs (6)
2742TargetType = resourceType, 2774TargetType = resourceType, 2816TargetType = resourceType, 3013TargetType = resourceType, 3330TargetType = resourceType, 3654TargetType = 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 (8)
AtsTypeScriptCodeGeneratorTests.cs (8)
1392TargetType = distributedApplicationBuilderCapability.TargetType, 1666TargetType = addTestRedis.TargetType, 2587TargetType = targetType, 2599TargetType = targetType, 2611TargetType = targetType, 2623TargetType = targetType, 2883TargetType = targetType, 3023TargetType = 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
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)
2408AddHandleTypeIfNeeded(handleTypeIds, capability.TargetType); 2495: capability.TargetType is not null 2496? [capability.TargetType] 2524AddListOrDictTypeIfNeeded(typeIds, capability.TargetType);
Aspire.Hosting.CodeGeneration.Python (6)
AtsPythonCodeGenerator.cs (6)
419TargetType = shortest.TargetType, 1615!IsTargetTypeCoveredByBaseHierarchy(c.TargetType, builder.TargetType)).ToList(); 1618!IsTargetTypeCoveredByBaseHierarchy(c.TargetType, builder.TargetType)).ToList(); 1633!IsTargetTypeCoveredByBaseHierarchy(c.TargetType, builder.TargetType)).ToList(); 1917var targetTypeRef = cap.TargetType; 2052(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); 2654var targetTypeRef = cap.TargetType;
Aspire.Hosting.CodeGeneration.TypeScript.Tests (29)
AtsTypeScriptCodeGeneratorTests.cs (29)
566TargetType = c.TargetType != null ? new { c.TargetType.TypeId, c.TargetType.IsInterface } : null, 603Assert.NotNull(cap.TargetType); 604Assert.False(cap.TargetType.IsInterface, 634Assert.NotNull(withBindMount.TargetType); 635Assert.Equal("Aspire.Hosting/Aspire.Hosting.ApplicationModel.ContainerResource", withBindMount.TargetType.TypeId); 636Assert.False(withBindMount.TargetType.IsInterface, 642Assert.NotNull(withEnvironment.TargetType); 643Assert.True(withEnvironment.TargetType.IsInterface, 663Assert.NotNull(withConnectionStringDirect.TargetType); 664Assert.Contains("IResourceWithConnectionString", withConnectionStringDirect.TargetType.TypeId); 665Assert.True(withConnectionStringDirect.TargetType.IsInterface); 691Assert.NotNull(withRedisSpecific.TargetType); 692Assert.Contains("TestRedisResource", withRedisSpecific.TargetType.TypeId); 693Assert.False(withRedisSpecific.TargetType.IsInterface, "TestRedisResource is a concrete type"); 717Assert.NotNull(withBindMount.TargetType); 718Assert.Contains("ContainerResource", withBindMount.TargetType.TypeId); 719Assert.False(withBindMount.TargetType.IsInterface); 888Assert.NotNull(withConnectionStringDirect.TargetType); 889Assert.True(withConnectionStringDirect.TargetType.IsInterface, 922Assert.NotNull(testWithEnvironmentCallback.TargetType); 923Assert.Contains("IResourceWithEnvironment", testWithEnvironmentCallback.TargetType.TypeId); 924Assert.True(testWithEnvironmentCallback.TargetType.IsInterface, 991Assert.False(withVolume.TargetType?.IsInterface); 1007Assert.False(withProjectVolume.TargetType?.IsInterface); 1023Assert.False(withExecutableVolume.TargetType?.IsInterface); 1392TargetType = distributedApplicationBuilderCapability.TargetType, 1666TargetType = 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,