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 library support #154

Open
2 tasks
Keboo opened this issue Jun 3, 2019 · 0 comments
Open
2 tasks

Add library support #154

Keboo opened this issue Jun 3, 2019 · 0 comments
Milestone

Comments

@Keboo
Copy link
Owner

Keboo commented Jun 3, 2019

Right now AutoDI, looks for an entry point in the assembly and wires up its setup call inside of that. However, this can be problematic if you are producing a library that you expect to be consumed by other. Ideally AutoDI should work without the consumer of the library needing to know about AutoDI.

I am thinking something like the following:

  • New setting for turning this behavior on and off. Defaults to off.
  • When enabled, do the registration in the module initializer rather than looking for an entry point. Turning this on should disable the entry point registration.
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