11 writes to IsInterface
Aspire.Hosting (11)
Ats\AtsCapabilityScanner.cs (11)
755
IsInterface
= false
786
IsInterface
= false
1129
IsInterface
= contextType.IsInterface
1235
IsInterface
= contextType.IsInterface
2164
IsInterface
= constraintType.IsInterface
2175
IsInterface
= resourceType.IsInterface
2211
IsInterface
= type.IsInterface
2223
IsInterface
= type.IsInterface
2233
IsInterface
= type.IsInterface
2313
IsInterface
= true
2348
IsInterface
= false
21 references to IsInterface
Aspire.Hosting.CodeGeneration.TypeScript (4)
AtsTypeScriptCodeGenerator.cs (4)
278
return typeRef.Category == AtsTypeCategory.Handle && typeRef.
IsInterface
;
2518
if (targetTypeRef.
IsInterface
)
2564
IsInterface = typeRef?.
IsInterface
?? false,
2636
IsInterface = typeRef.
IsInterface
,
Aspire.Hosting.CodeGeneration.TypeScript.Tests (16)
AtsTypeScriptCodeGeneratorTests.cs (16)
247
Assert.False(testRedisTarget.
IsInterface
, "TestRedisResource is a concrete type, not an interface");
385
TargetType = c.TargetType != null ? new { c.TargetType.TypeId, c.TargetType.
IsInterface
} : null,
388
.Select(t => new { t.TypeId, t.
IsInterface
})
423
Assert.False(cap.TargetType.
IsInterface
,
430
Assert.False(expandedType.
IsInterface
,
455
Assert.False(withBindMount.TargetType.
IsInterface
,
462
Assert.True(withEnvironment.TargetType.
IsInterface
,
484
Assert.True(withConnectionStringDirect.TargetType.
IsInterface
);
493
Assert.False(testRedisExpanded.
IsInterface
, "Expanded concrete type should have IsInterface = false");
512
Assert.False(withRedisSpecific.TargetType.
IsInterface
, "TestRedisResource is a concrete type");
538
Assert.False(withBindMount.TargetType.
IsInterface
);
569
Assert.True(dependencyParam.Type.
IsInterface
, "IResourceWithConnectionString is an interface");
633
Assert.True(withConnectionStringDirect.TargetType.
IsInterface
,
642
Assert.False(expandedType.
IsInterface
,
668
Assert.True(testWithEnvironmentCallback.TargetType.
IsInterface
,
678
Assert.False(testRedisExpanded.
IsInterface
, "TestRedisResource is a concrete type");
Aspire.Hosting.RemoteHost (1)
CodeGeneration\CodeGenerationService.cs (1)
99
IsInterface = t.
IsInterface
,