Skip to content

Add library support #154

@Keboo

Description

@Keboo

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions