Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 1.38 KB

File metadata and controls

27 lines (22 loc) · 1.38 KB

AutoRegister

NuGet version NuGet downloads

Reflection-free, build-time, convention-based dependency registration.

AutoRegister is a Fody plugin that scans your assembly at build time and generates code to register your injectable dependencies.

Example

You can register all descendants of BaseClass like so:

[AutoRegister(Find.DescendantsOf, typeof(BaseClass), RegisterAs.SearchedType, WithLifetime.Scoped)]
public partial class MyModule
{
}

Documentation