Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Bootstrap fluent interface
Bootstrap
.Assemblies(scan => {
scan.Include().FromType<Type>();
scan.Include().Assembly(Assembly);
scan.Include().StartsWith(string);
scan.Include().Contains(string);
scan.Include().LoadedAssemblies();
scan.Include().ReferencedAssemblies();
scan.Exclude().FromType<Type>();
scan.Exclude().Assembly(Assembly);
scan.Exclude().StartsWith(string);
scan.Exclude().Contains(string);
})
.Services(service => {
service.Boot().AutoMapper();
service.Boot().ServiceLocator();
service.Boot().AutoFac();
service.Boot().MongoDB();
service.Boot().StartupTasks();
})
.Options(o => o.Log(Console.out).Level(Error))
.Start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment