Skip to content

Singletons are getting disposed #20

Open
@kvanover

Description

@kvanover

I have a problem with registered entries as singleton.
If I add a registration as a singleton (with IDisposable as interface), these objects are getting disposed on request ending in aspnetcore, but still exists in the container on the next request, but disposed off course.

Is this normal? I would think if you register a singleton, It would not get disposed on request scope?

ex: container.Configure(x => x.For(serviceType).Use(implementationType).Singleton());

Thanks,

Koen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions