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

Change API for registering dependencies with Cake #1180

Closed
patriksvensson opened this issue Aug 21, 2016 · 0 comments
Closed

Change API for registering dependencies with Cake #1180

patriksvensson opened this issue Aug 21, 2016 · 0 comments
Assignees
Milestone

Comments

@patriksvensson
Copy link
Member

Currently there is some problems with ICakeContainerRegistry and ICakeRegistrationBuilder.

  • Methods in both are generic, which makes it cumbersome to register types. This can be solved by changing methods to accept Type and add extension methods on top.
  • ICakeContainerRegistry should be called ICakeContainerRegistrar since it's something that registers things with a container and not a registry over containers.
  • The ICakeContainerRegistry.RegisterModule is out of place and should be removed. Could be added as an extension method.
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