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