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

Do not try to register GrainVersionStore if an implementation of IVersionStore is already registered #4911

Merged

Conversation

benjaminpetit
Copy link
Member

Fix for #4855

@benjaminpetit
Copy link
Member Author

@dotnet-bot test functional

@@ -171,8 +172,11 @@ internal static void AddDefaultServices(HostBuilderContext context, IServiceColl
services.TryAddSingleton<VersionSelectorManager>();
services.TryAddSingleton<CachedVersionSelectorManager>();
// Version selector strategy
services.TryAddSingleton<GrainVersionStore>();
services.AddFromExisting<IVersionStore, GrainVersionStore>();
Copy link
Member

Choose a reason for hiding this comment

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

This can be TryAddFromExisting instead

Copy link
Member

Choose a reason for hiding this comment

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

(but it doesn't matter)

Copy link
Member Author

Choose a reason for hiding this comment

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

Mhh I would prefer not to register GrainVersionStore if it is not needed. I guess I could add a new helper method?

@ReubenBond ReubenBond merged commit 44d9c0c into dotnet:master Aug 31, 2018
@benjaminpetit benjaminpetit deleted the fix-versionstore-registration branch August 14, 2019 16:41
@github-actions github-actions bot locked and limited conversation to collaborators Dec 6, 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.

None yet

2 participants