Skip to content

[Docs] Does built-in container handle disposal? #1848

Open
@lonix1

Description

@lonix1

I'm using the built-in container like so:

invocationContext.BindingContext.AddService(x => new ParentService());
invocationContext.BindingContext.AddService(x => new ChildService(x.GetRequiredService<ParentService>()));
invocationContext.BindingContext.AddService(x => new OtherService());
// etc.

An IoC container typically handles disposal. I looked at BindingContext and didn't see anything to this effect, but maybe I'm looking in the wrong place.

Does this library's container dispose services that implement IDisposable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions