- Notifications
You must be signed in to change notification settings - Fork 39
Closed
Description
Description
FactoryLifeTime.Scoped has wrong return type
To Reproduce
N/A. Can't write a working unit test, because it's literally a compilation error to do so.
Just look at the relevant source code and it'll be clear:
| public static ITypeLifetimeManager Scoped => new HierarchicalLifetimeManager(); |
That should be IFactoryLifetimeManager ; same as FactoryLifeTime.Hierarchical defined just before:
| public static IFactoryLifetimeManager Hierarchical => new HierarchicalLifetimeManager(); |