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

Improve chaining on containers #78

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

Improve chaining on containers #78

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

Comments

@intentor
Copy link
Owner

intentor commented Mar 1, 2017

To improve usability, chaining on containers has to expanded.

The context root from the MultiContainer example is a bad example of how chaining is currently being treated:

var containerOne = this.AddContainer<InjectionContainer>("container1");
            containerOne.RegisterExtension<CommanderContainerExtension>()
                .Bind<ITestInterface>().ToNamespace("Assets.Test.MultiContainer.Example");
            containerOne.RegisterCommands("Assets.Test.MultiContainer.Command");

It requires a new variable just because chaining isn't correctly standardized.

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