4 writes to TargetType
Aspire.Hosting.RemoteHost (4)
44 references to TargetType
Aspire.Hosting.CodeGeneration.Go (4)
Aspire.Hosting.CodeGeneration.Java (4)
Aspire.Hosting.CodeGeneration.Python (4)
Aspire.Hosting.CodeGeneration.Rust (4)
Aspire.Hosting.CodeGeneration.TypeScript (1)
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)