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

Use TryAdd in AddXxx methods to only add services if not already present. #1180

Closed
wants to merge 1 commit into from

Conversation

ajcvickers
Copy link
Contributor

Issue #956 and also see pull request #1129.

This change updates all of our AddXxx methods to use TryAdd when adding to the service collection such that only services that are not already registered will be registered. This also means that the code we had to check the service collection for "hosting" services is no longer needed.

…ent.

Issue #956 and also see pull request #1129.

This change updates all of our AddXxx methods to use TryAdd when adding to the service collection such that only services that are not already registered will be registered. This also means that the code we had to check the service collection for "hosting" services is no longer needed.
@divega
Copy link
Contributor

divega commented Nov 27, 2014

Cc @HaoK

@ajcvickers
Copy link
Contributor Author

Creating new pull request with bug fix.

@ajcvickers ajcvickers closed this Nov 27, 2014
@ajcvickers ajcvickers deleted the AddXxx1126 branch November 27, 2014 02:19
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.

2 participants