Skip to content
This repository was archived by the owner on Nov 2, 2018. It is now read-only.
This repository was archived by the owner on Nov 2, 2018. It is now read-only.

NullRef in ctor invocation #210

@HaoK

Description

@HaoK

Ran into this when I accidentally did services.AddTransient<IFoo, IFoo>() and then had another class ctor public Ctor(IFoo foo). DI throws a Null ref deep inside of trying to invoke the ctor instead of a useful error message that was swallowed (cannot create an instance of an interface)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions