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)
2309var targetTypeRef = cap.TargetType;
Aspire.Hosting.CodeGeneration.TypeScript.Tests (24)
AtsTypeScriptCodeGeneratorTests.cs (24)
374TargetType = c.TargetType != null ? new { c.TargetType.TypeId, c.TargetType.IsInterface } : null, 411Assert.NotNull(cap.TargetType); 412Assert.False(cap.TargetType.IsInterface, 442Assert.NotNull(withBindMount.TargetType); 443Assert.Equal("Aspire.Hosting/Aspire.Hosting.ApplicationModel.ContainerResource", withBindMount.TargetType.TypeId); 444Assert.False(withBindMount.TargetType.IsInterface, 450Assert.NotNull(withEnvironment.TargetType); 451Assert.True(withEnvironment.TargetType.IsInterface, 471Assert.NotNull(withConnectionStringDirect.TargetType); 472Assert.Contains("IResourceWithConnectionString", withConnectionStringDirect.TargetType.TypeId); 473Assert.True(withConnectionStringDirect.TargetType.IsInterface); 499Assert.NotNull(withRedisSpecific.TargetType); 500Assert.Contains("TestRedisResource", withRedisSpecific.TargetType.TypeId); 501Assert.False(withRedisSpecific.TargetType.IsInterface, "TestRedisResource is a concrete type"); 525Assert.NotNull(withBindMount.TargetType); 526Assert.Contains("ContainerResource", withBindMount.TargetType.TypeId); 527Assert.False(withBindMount.TargetType.IsInterface); 621Assert.NotNull(withConnectionStringDirect.TargetType); 622Assert.True(withConnectionStringDirect.TargetType.IsInterface, 655Assert.NotNull(testWithEnvironmentCallback.TargetType); 656Assert.Contains("IResourceWithEnvironment", testWithEnvironmentCallback.TargetType.TypeId); 657Assert.True(testWithEnvironmentCallback.TargetType.IsInterface,
aspire-server (2)
CodeGeneration\CodeGenerationService.cs (2)
75TargetType = c.TargetType != null ? MapTypeRef(c.TargetType) : null,