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

Add Init event to containers #80

Closed
intentor opened this issue Mar 2, 2017 · 0 comments
Closed

Add Init event to containers #80

intentor opened this issue Mar 2, 2017 · 0 comments
Assignees
Milestone

Comments

@intentor
Copy link
Owner

intentor commented Mar 2, 2017

To allow container and extensions initilization, the container should have a Init() method, which can be used to populate cache and initialize internal bindings.

Using ContextRoot, the method is called automatically during initialization. Manually, it should be called after all bindings and container settings have been added.

Additionally, the event can be used on the CommanderExtension to perform late bindings, allowing to remove the current temporal coupling that exists between command registration and bindinds.

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

No branches or pull requests

1 participant