Skip to content

FactoryLifetime.Scoped has wrong return type #134

@rjgotten

Description

@rjgotten

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();

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions