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

LocateService can return a pointer to a service which hasn't been activated (1..1, 1..n) #574

Open
achristoforides opened this issue Jun 1, 2021 · 0 comments
Labels

Comments

@achristoforides
Copy link
Member

LocateService is able to return a pointer to a service which hasn't been activated yet.

If a service (A) is dependent on another service (B) and service A's bundle has "inject-references: false" and "immediate: false" specified, then when the user of service A calls LocateService in their Activate method, they will receive a valid shared_ptr to a service who's Activate method hasn't been called.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant