4 writes to TargetType
Aspire.Hosting (4)
Ats\AtsCapabilityScanner.cs (4)
1162TargetType = contextTypeRef, 1209TargetType = contextTypeRef, 1362TargetType = instanceContextTypeRef, 1486TargetType = extendsTypeRef,
44 references to TargetType
Aspire.Hosting (1)
Ats\AtsCapabilityScanner.cs (1)
751var targetTypeRef = capability.TargetType ?? new AtsTypeRef
Aspire.Hosting.CodeGeneration.Go (4)
AtsGoCodeGenerator.cs (4)
548AddHandleTypeIfNeeded(handleTypeIds, capability.TargetType); 605: capability.TargetType is not null 606? [capability.TargetType] 634AddListOrDictTypeIfNeeded(typeIds, capability.TargetType);
Aspire.Hosting.CodeGeneration.Java (4)
AtsJavaCodeGenerator.cs (4)
515AddHandleTypeIfNeeded(handleTypeIds, capability.TargetType); 572: capability.TargetType is not null 573? [capability.TargetType] 601AddListOrDictTypeIfNeeded(typeIds, capability.TargetType);
Aspire.Hosting.CodeGeneration.Python (4)
AtsPythonCodeGenerator.cs (4)
422AddHandleTypeIfNeeded(handleTypeIds, capability.TargetType); 477: capability.TargetType is not null 478? [capability.TargetType] 506AddListOrDictTypeIfNeeded(typeIds, capability.TargetType);
Aspire.Hosting.CodeGeneration.Rust (4)
AtsRustCodeGenerator.cs (4)
623AddHandleTypeIfNeeded(handleTypeIds, capability.TargetType); 680: capability.TargetType is not null 681? [capability.TargetType] 708AddListOrDictTypeIfNeeded(typeIds, capability.TargetType);
Aspire.Hosting.CodeGeneration.TypeScript (1)
AtsTypeScriptCodeGenerator.cs (1)
2479var targetTypeRef = cap.TargetType;
Aspire.Hosting.CodeGeneration.TypeScript.Tests (24)
AtsTypeScriptCodeGeneratorTests.cs (24)
385TargetType = c.TargetType != null ? new { c.TargetType.TypeId, c.TargetType.IsInterface } : null, 422Assert.NotNull(cap.TargetType); 423Assert.False(cap.TargetType.IsInterface, 453Assert.NotNull(withBindMount.TargetType); 454Assert.Equal("Aspire.Hosting/Aspire.Hosting.ApplicationModel.ContainerResource", withBindMount.TargetType.TypeId); 455Assert.False(withBindMount.TargetType.IsInterface, 461Assert.NotNull(withEnvironment.TargetType); 462Assert.True(withEnvironment.TargetType.IsInterface, 482Assert.NotNull(withConnectionStringDirect.TargetType); 483Assert.Contains("IResourceWithConnectionString", withConnectionStringDirect.TargetType.TypeId); 484Assert.True(withConnectionStringDirect.TargetType.IsInterface); 510Assert.NotNull(withRedisSpecific.TargetType); 511Assert.Contains("TestRedisResource", withRedisSpecific.TargetType.TypeId); 512Assert.False(withRedisSpecific.TargetType.IsInterface, "TestRedisResource is a concrete type"); 536Assert.NotNull(withBindMount.TargetType); 537Assert.Contains("ContainerResource", withBindMount.TargetType.TypeId); 538Assert.False(withBindMount.TargetType.IsInterface); 632Assert.NotNull(withConnectionStringDirect.TargetType); 633Assert.True(withConnectionStringDirect.TargetType.IsInterface, 666Assert.NotNull(testWithEnvironmentCallback.TargetType); 667Assert.Contains("IResourceWithEnvironment", testWithEnvironmentCallback.TargetType.TypeId); 668Assert.True(testWithEnvironmentCallback.TargetType.IsInterface,
Aspire.Hosting.RemoteHost (2)
CodeGeneration\CodeGenerationService.cs (2)
75TargetType = c.TargetType != null ? MapTypeRef(c.TargetType) : null,