4 writes to TargetType
Aspire.Hosting (4)
Ats\AtsCapabilityScanner.cs (4)
1059TargetType = contextTypeRef, 1103TargetType = contextTypeRef, 1251TargetType = instanceContextTypeRef, 1372TargetType = extendsTypeRef,
26 references to TargetType
Aspire.Hosting (1)
Ats\AtsCapabilityScanner.cs (1)
689var targetTypeRef = capability.TargetType ?? new AtsTypeRef
Aspire.Hosting.CodeGeneration.TypeScript (1)
AtsTypeScriptCodeGenerator.cs (1)
2215var targetTypeRef = cap.TargetType;
Aspire.Hosting.CodeGeneration.TypeScript.Tests (24)
AtsTypeScriptCodeGeneratorTests.cs (24)
377TargetType = c.TargetType != null ? new { c.TargetType.TypeId, c.TargetType.IsInterface } : null, 414Assert.NotNull(cap.TargetType); 415Assert.False(cap.TargetType.IsInterface, 445Assert.NotNull(withBindMount.TargetType); 446Assert.Equal("Aspire.Hosting/Aspire.Hosting.ApplicationModel.ContainerResource", withBindMount.TargetType.TypeId); 447Assert.False(withBindMount.TargetType.IsInterface, 453Assert.NotNull(withEnvironment.TargetType); 454Assert.True(withEnvironment.TargetType.IsInterface, 474Assert.NotNull(withConnectionStringDirect.TargetType); 475Assert.Contains("IResourceWithConnectionString", withConnectionStringDirect.TargetType.TypeId); 476Assert.True(withConnectionStringDirect.TargetType.IsInterface); 502Assert.NotNull(withRedisSpecific.TargetType); 503Assert.Contains("TestRedisResource", withRedisSpecific.TargetType.TypeId); 504Assert.False(withRedisSpecific.TargetType.IsInterface, "TestRedisResource is a concrete type"); 528Assert.NotNull(withBindMount.TargetType); 529Assert.Contains("ContainerResource", withBindMount.TargetType.TypeId); 530Assert.False(withBindMount.TargetType.IsInterface); 624Assert.NotNull(withConnectionStringDirect.TargetType); 625Assert.True(withConnectionStringDirect.TargetType.IsInterface, 658Assert.NotNull(testWithEnvironmentCallback.TargetType); 659Assert.Contains("IResourceWithEnvironment", testWithEnvironmentCallback.TargetType.TypeId); 660Assert.True(testWithEnvironmentCallback.TargetType.IsInterface,