11 writes to IsInterface
Aspire.Hosting (11)
Ats\AtsCapabilityScanner.cs (11)
693
IsInterface
= false
724
IsInterface
= false
1026
IsInterface
= contextType.IsInterface
1126
IsInterface
= contextType.IsInterface
2014
IsInterface
= constraintType.IsInterface
2025
IsInterface
= resourceType.IsInterface
2061
IsInterface
= type.IsInterface
2073
IsInterface
= type.IsInterface
2083
IsInterface
= type.IsInterface
2163
IsInterface
= true
2198
IsInterface
= false
20 references to IsInterface
Aspire.Hosting.CodeGeneration.TypeScript (4)
AtsTypeScriptCodeGenerator.cs (4)
267
return typeRef.Category == AtsTypeCategory.Handle && typeRef.
IsInterface
;
2247
if (targetTypeRef.
IsInterface
)
2293
IsInterface = typeRef?.
IsInterface
?? false,
2365
IsInterface = typeRef.
IsInterface
,
Aspire.Hosting.CodeGeneration.TypeScript.Tests (16)
AtsTypeScriptCodeGeneratorTests.cs (16)
264
Assert.False(testRedisTarget.
IsInterface
, "TestRedisResource is a concrete type, not an interface");
377
TargetType = c.TargetType != null ? new { c.TargetType.TypeId, c.TargetType.
IsInterface
} : null,
380
.Select(t => new { t.TypeId, t.
IsInterface
})
415
Assert.False(cap.TargetType.
IsInterface
,
422
Assert.False(expandedType.
IsInterface
,
447
Assert.False(withBindMount.TargetType.
IsInterface
,
454
Assert.True(withEnvironment.TargetType.
IsInterface
,
476
Assert.True(withConnectionStringDirect.TargetType.
IsInterface
);
485
Assert.False(testRedisExpanded.
IsInterface
, "Expanded concrete type should have IsInterface = false");
504
Assert.False(withRedisSpecific.TargetType.
IsInterface
, "TestRedisResource is a concrete type");
530
Assert.False(withBindMount.TargetType.
IsInterface
);
561
Assert.True(dependencyParam.Type.
IsInterface
, "IResourceWithConnectionString is an interface");
625
Assert.True(withConnectionStringDirect.TargetType.
IsInterface
,
634
Assert.False(expandedType.
IsInterface
,
660
Assert.True(testWithEnvironmentCallback.TargetType.
IsInterface
,
670
Assert.False(testRedisExpanded.
IsInterface
, "TestRedisResource is a concrete type");