-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
Milestone
Description
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.