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

T #11 Added custom service scope #15

Merged
merged 1 commit into from
Aug 21, 2022
Merged

Conversation

HueByte
Copy link
Owner

@HueByte HueByte commented Aug 21, 2022

T #11

@HueByte HueByte added the enhancement New feature or request label Aug 21, 2022
@HueByte HueByte requested a review from KaisoBits August 21, 2022 15:18
@HueByte HueByte self-assigned this Aug 21, 2022
@HueByte HueByte linked an issue Aug 21, 2022 that may be closed by this pull request

protected virtual void Dispose(bool disposing)
{
if (disposing) AsyncScope.Dispose();
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you want to call .Dispose on the AsyncScope regardless of the disposing value
Otherwise if we don't explicitly call Dispose on this object (or via using), the AsyncScope won't get disposed by the finalizer.

Copy link
Owner Author

Choose a reason for hiding this comment

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

As for now, this is intended, there should not be a place anywhere in the code where ExtendedShardedInteractionContext is not disposed of. Although we should watch it and see what happens.

https://docs.microsoft.com/en-us/dotnet/standard/garbage-collection/implementing-disposeasync#implement-the-async-dispose-pattern

Copy link
Collaborator

Choose a reason for hiding this comment

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

Alrighty!

@KaisoBits KaisoBits merged commit 74abc1a into master Aug 21, 2022
@KaisoBits KaisoBits deleted the dev/11_Custom_Service_Scope branch August 21, 2022 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Research Scope creation of Interaction Framework
2 participants