Skip to content

#33 ScopedWindsorServiceProvider should implement IDisposable#34

Closed
jdwoolcock wants to merge 1 commit intovolosoft:masterfrom
jdwoolcock:master
Closed

#33 ScopedWindsorServiceProvider should implement IDisposable#34
jdwoolcock wants to merge 1 commit intovolosoft:masterfrom
jdwoolcock:master

Conversation

@jdwoolcock
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
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