Skip to content

Factory and instance registrations don't work in modules #188

@pontifex9355

Description

@pontifex9355

If you have a simple module you can't register dependencies as factories nor instances.

You get the: Error CS1061 : 'Provider' does not contain a definition for 'SingletonClassFactory' and no accessible extension method 'SingletonClassFactory' accepting a first argument of type 'Provider' could be found (are you missing a using directive or an assembly reference?)

Only simple registration works (Transient, Scoped and Singleton).

Image Image Image Image

Repro project:
ClassLibrary1.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions