Skip to content

Injecting a transient or scoped service won't work #317

Description

@Elie-A-98

All the controllers are injected as singletons. So if we have a transient or scoped service to be injected in a controller, it won't work because it has a shorter lifetime.

For ex resolving a scoped service in a controller will always return the same instance of that service because the containing class is a singleton.

Am I missing something or is that assumption right ?

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