I can register all Autofac modules (classes derived from Autofac.Module) one by one using a string like
builder.RegisterModule(new LoggingInjectionModule());
But if I have 10 or more modules, I just want to specify the assembly where Autofac can find all the modules that need to be registered. Is there a way to register all modules from a particular assembly, namespace on one line or two lines?
source share