4 writes to TargetType
Aspire.Hosting.RemoteHost (4)
AtsCapabilityScanner.cs (4)
1182TargetType = contextTypeRef, 1229TargetType = contextTypeRef, 1382TargetType = instanceContextTypeRef, 1507TargetType = extendsTypeRef,
44 references to TargetType
Aspire.Hosting.CodeGeneration.Go (4)
AtsGoCodeGenerator.cs (4)
544AddHandleTypeIfNeeded(handleTypeIds, capability.TargetType); 600: capability.TargetType is not null 601? [capability.TargetType] 629AddListOrDictTypeIfNeeded(typeIds, capability.TargetType);
Aspire.Hosting.CodeGeneration.Java (4)
AtsJavaCodeGenerator.cs (4)
514AddHandleTypeIfNeeded(handleTypeIds, capability.TargetType); 570: capability.TargetType is not null 571? [capability.TargetType] 599AddListOrDictTypeIfNeeded(typeIds, capability.TargetType);
Aspire.Hosting.CodeGeneration.Python (4)
AtsPythonCodeGenerator.cs (4)
421AddHandleTypeIfNeeded(handleTypeIds, capability.TargetType); 475: capability.TargetType is not null 476? [capability.TargetType] 504AddListOrDictTypeIfNeeded(typeIds, capability.TargetType);
Aspire.Hosting.CodeGeneration.Rust (4)
AtsRustCodeGenerator.cs (4)
622AddHandleTypeIfNeeded(handleTypeIds, capability.TargetType); 678: capability.TargetType is not null 679? [capability.TargetType] 706AddListOrDictTypeIfNeeded(typeIds, capability.TargetType);
Aspire.Hosting.CodeGeneration.TypeScript (1)
AtsTypeScriptCodeGenerator.cs (1)
2534var targetTypeRef = cap.TargetType;
Aspire.Hosting.CodeGeneration.TypeScript.Tests (24)
AtsTypeScriptCodeGeneratorTests.cs (24)
395TargetType = c.TargetType != null ? new { c.TargetType.TypeId, c.TargetType.IsInterface } : null, 432Assert.NotNull(cap.TargetType); 433Assert.False(cap.TargetType.IsInterface, 463Assert.NotNull(withBindMount.TargetType); 464Assert.Equal("Aspire.Hosting/Aspire.Hosting.ApplicationModel.ContainerResource", withBindMount.TargetType.TypeId); 465Assert.False(withBindMount.TargetType.IsInterface, 471Assert.NotNull(withEnvironment.TargetType); 472Assert.True(withEnvironment.TargetType.IsInterface, 492Assert.NotNull(withConnectionStringDirect.TargetType); 493Assert.Contains("IResourceWithConnectionString", withConnectionStringDirect.TargetType.TypeId); 494Assert.True(withConnectionStringDirect.TargetType.IsInterface); 520Assert.NotNull(withRedisSpecific.TargetType); 521Assert.Contains("TestRedisResource", withRedisSpecific.TargetType.TypeId); 522Assert.False(withRedisSpecific.TargetType.IsInterface, "TestRedisResource is a concrete type"); 546Assert.NotNull(withBindMount.TargetType); 547Assert.Contains("ContainerResource", withBindMount.TargetType.TypeId); 548Assert.False(withBindMount.TargetType.IsInterface); 642Assert.NotNull(withConnectionStringDirect.TargetType); 643Assert.True(withConnectionStringDirect.TargetType.IsInterface, 676Assert.NotNull(testWithEnvironmentCallback.TargetType); 677Assert.Contains("IResourceWithEnvironment", testWithEnvironmentCallback.TargetType.TypeId); 678Assert.True(testWithEnvironmentCallback.TargetType.IsInterface,
Aspire.Hosting.RemoteHost (3)
AtsCapabilityScanner.cs (1)
762var targetTypeRef = capability.TargetType ?? new AtsTypeRef
CodeGeneration\CodeGenerationService.cs (2)
75TargetType = c.TargetType != null ? MapTypeRef(c.TargetType) : null,