Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#33 ScopedWindsorServiceProvider should implement IDisposable #34

Closed
wants to merge 1 commit into from
Closed

Conversation

jdwoolcock
Copy link

@jdwoolcock jdwoolcock commented May 13, 2019

Fixes #33

@ismcagdas ismcagdas requested a review from hikalkan May 17, 2019 06:16
@ismcagdas ismcagdas added this to the v3.4 milestone May 17, 2019

public void Dispose()
{
_container.Dispose();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should care about this, because _container is singleton (I mean a single object during application lifetime), but ScopedWindsorServiceProvider has many instances (per scope). Did you consider this, is there any problem?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies, I hadn't taken that use case into consideration. I will close the pull request

@jdwoolcock jdwoolcock closed this May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ScopedWindsorServiceProvider should implement IDisposable
3 participants