Skip to content

Provider lifecycle storage improvements#2

Open
jdom wants to merge 3 commits intojason-bragg:ProviderLifecycle-Storagefrom
jdom:ProviderLifecycle-Storage
Open

Provider lifecycle storage improvements#2
jdom wants to merge 3 commits intojason-bragg:ProviderLifecycle-Storagefrom
jdom:ProviderLifecycle-Storage

Conversation

@jdom
Copy link

@jdom jdom commented Dec 14, 2017

Some suggestions for improvements. Please look at the commits in isolation

@jdom
Copy link
Author

jdom commented Dec 14, 2017

/cc @ReubenBond @sergeybykov

if (!services.Any(s => s.ServiceType == typeof(KeyedSiloLifecycleParticipantCollection<string, IGrainStorage>)))
{
services.AddSingleton<KeyedSiloLifecycleParticipantCollection<string, IGrainStorage>>();
services.AddFromExisting<ILifecycleParticipant<ISiloLifecycle>, KeyedSiloLifecycleParticipantCollection<string, IGrainStorage>>();

Choose a reason for hiding this comment

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

This is essentially what I was trying to suggest in the meeting

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