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

VostokMultiHost singletons #44

Open
HolyPrapor opened this issue Feb 18, 2021 · 1 comment
Open

VostokMultiHost singletons #44

HolyPrapor opened this issue Feb 18, 2021 · 1 comment

Comments

@HolyPrapor
Copy link
Member

https://kontur.slack.com/archives/C08DRHZTP/p1613624274446400

The goal here is to make users able to register singletons created from their configurationProvider.Get<MySettings>

@HolyPrapor
Copy link
Member Author

HolyPrapor commented Jun 8, 2021

It may be not related to this issue, but I don't want to create a separate one now.

I received a feedback that it's hard to work with static members when migrating from separate processes to VostokMultiHost.

For example, it is hard to use static ConfigurationProvider because VostokMultiHost initializes it only once.
Another example is that sometimes we don't want to initialize some components twice (or thrice or n times for MultiHost and for child applications).

Needs a research...

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

No branches or pull requests

1 participant