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

Avoid registering client observers during shutdown #6879

Merged

Conversation

ReubenBond
Copy link
Member

The main fix here is in DefaultSiloServices.cs, to ensure the service is registered: TryAdd* is the wrong method for a service which we retrieve multiple implementations of from the the container via 'IEnumerable`.

The other changes are just to minorly improve gracefulness.

@ReubenBond ReubenBond force-pushed the fix/register-client-on-shutdown branch from bc255a9 to 138dc87 Compare January 14, 2021 13:21
@ReubenBond
Copy link
Member Author

@benjaminpetit I fixed the merge conflict. Even though a later PR will obliterate this one by removing ClientObserverRegistrar altogether, I think we can still take this just in case we don't want the ClientDirectory in 3.x

@benjaminpetit benjaminpetit merged commit 9825859 into dotnet:master Jan 14, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Dec 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants