We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83c77e2 commit 837bd58Copy full SHA for 837bd58
1 file changed
src/StructureMap.Microsoft.DependencyInjection/StructureMapServiceProviderIsService.cs
@@ -29,13 +29,11 @@ public bool IsService(Type serviceType)
29
return true;
30
}
31
32
-
33
if (serviceType.IsConstructedGenericType && serviceType.GetGenericTypeDefinition() is Type genericDefinition)
34
{
35
// We special case IEnumerable since it isn't explicitly registered in the container
36
// yet we can manifest instances of it when requested.
37
- return genericDefinition == typeof(IEnumerable<>) ||
38
- _container.Model.HasDefaultImplementationFor(genericDefinition);
+ return genericDefinition == typeof(IEnumerable<>);
39
40
41
return false;
0 commit comments