4 writes to TargetType
Aspire.Hosting (4)
Ats\AtsCapabilityScanner.cs (4)
1070TargetType = contextTypeRef, 1116TargetType = contextTypeRef, 1266TargetType = instanceContextTypeRef, 1389TargetType = extendsTypeRef,
44 references to TargetType
Aspire.Hosting (1)
Ats\AtsCapabilityScanner.cs (1)
700var targetTypeRef = capability.TargetType ?? new AtsTypeRef
Aspire.Hosting.CodeGeneration.Go (4)
AtsGoCodeGenerator.cs (4)
547AddHandleTypeIfNeeded(handleTypeIds, capability.TargetType); 599: capability.TargetType is not null 600? [capability.TargetType] 628AddListOrDictTypeIfNeeded(typeIds, capability.TargetType);
Aspire.Hosting.CodeGeneration.Java (4)
AtsJavaCodeGenerator.cs (4)
514AddHandleTypeIfNeeded(handleTypeIds, capability.TargetType); 566: capability.TargetType is not null 567? [capability.TargetType] 595AddListOrDictTypeIfNeeded(typeIds, capability.TargetType);
Aspire.Hosting.CodeGeneration.Python (4)
AtsPythonCodeGenerator.cs (4)
422AddHandleTypeIfNeeded(handleTypeIds, capability.TargetType); 474: capability.TargetType is not null 475? [capability.TargetType] 503AddListOrDictTypeIfNeeded(typeIds, capability.TargetType);
Aspire.Hosting.CodeGeneration.Rust (4)
AtsRustCodeGenerator.cs (4)
581AddHandleTypeIfNeeded(handleTypeIds, capability.TargetType); 633: capability.TargetType is not null 634? [capability.TargetType] 661AddListOrDictTypeIfNeeded(typeIds, capability.TargetType);
Aspire.Hosting.CodeGeneration.TypeScript (1)
AtsTypeScriptCodeGenerator.cs (1)
2271var targetTypeRef = cap.TargetType;
Aspire.Hosting.CodeGeneration.TypeScript.Tests (24)
AtsTypeScriptCodeGeneratorTests.cs (24)
349TargetType = c.TargetType != null ? new { c.TargetType.TypeId, c.TargetType.IsInterface } : null, 386Assert.NotNull(cap.TargetType); 387Assert.False(cap.TargetType.IsInterface, 417Assert.NotNull(withBindMount.TargetType); 418Assert.Equal("Aspire.Hosting/Aspire.Hosting.ApplicationModel.ContainerResource", withBindMount.TargetType.TypeId); 419Assert.False(withBindMount.TargetType.IsInterface, 425Assert.NotNull(withEnvironment.TargetType); 426Assert.True(withEnvironment.TargetType.IsInterface, 446Assert.NotNull(withConnectionStringDirect.TargetType); 447Assert.Contains("IResourceWithConnectionString", withConnectionStringDirect.TargetType.TypeId); 448Assert.True(withConnectionStringDirect.TargetType.IsInterface); 474Assert.NotNull(withRedisSpecific.TargetType); 475Assert.Contains("TestRedisResource", withRedisSpecific.TargetType.TypeId); 476Assert.False(withRedisSpecific.TargetType.IsInterface, "TestRedisResource is a concrete type"); 500Assert.NotNull(withBindMount.TargetType); 501Assert.Contains("ContainerResource", withBindMount.TargetType.TypeId); 502Assert.False(withBindMount.TargetType.IsInterface); 596Assert.NotNull(withConnectionStringDirect.TargetType); 597Assert.True(withConnectionStringDirect.TargetType.IsInterface, 630Assert.NotNull(testWithEnvironmentCallback.TargetType); 631Assert.Contains("IResourceWithEnvironment", testWithEnvironmentCallback.TargetType.TypeId); 632Assert.True(testWithEnvironmentCallback.TargetType.IsInterface,
Aspire.Hosting.RemoteHost (2)
CodeGeneration\CodeGenerationService.cs (2)
75TargetType = c.TargetType != null ? MapTypeRef(c.TargetType) : null,