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

PostConstruct is being called twice #35

Closed
intentor opened this issue Oct 5, 2015 · 1 comment
Closed

PostConstruct is being called twice #35

intentor opened this issue Oct 5, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@intentor
Copy link
Owner

intentor commented Oct 5, 2015

PostConstruct is being called twice.

And example of the problem can be read at forum.unity3d.com/threads/released-adic-dependency-injection-container.311895/#post-2324897.

@intentor intentor added the bug label Oct 5, 2015
@intentor intentor added this to the v2.16 milestone Oct 5, 2015
@intentor intentor self-assigned this Oct 5, 2015
@intentor
Copy link
Owner Author

intentor commented Oct 5, 2015

The problem occurs when binding a singleton MonoBehaviour (e.g. using ToGameObject and its overloads) and also performing an Inject() call from the same MonoBehaviour. In both cases an injection is occuring and the PostConstruct is being called.

@intentor intentor modified the milestones: 2.15.2, v2.16 Oct 5, 2015
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