ipjohnson / Grace

Grace is a feature rich dependency injection container library
MIT License
336 stars 33 forks source link

Dropping IInjectionScope #137

Closed mcdis closed 6 years ago

mcdis commented 6 years ago

Can I drop IInjectionScope without call Dispose? Or it will be memory leaks...? In my case I'm maintaing disposable objects by my self and don't use containers in that way

ipjohnson commented 6 years ago

If you aren't depending on the container to do disposal of your objects then you should be fine. Grace doesn't specifically have any types that need disposing it's there to manage lifecycles of resolved types