Skip to content

Auto registration from assemblies

The following example will automatically register services for the entry point assembly:

var services = new ServiceCollection()
    .AutoRegisterServices(Assembly.GetEntryAssembly());