Skip to content

Instantly share code, notes, and snippets.

@pwelter34
Created May 27, 2014 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pwelter34/01faac6d72942c6e2d77 to your computer and use it in GitHub Desktop.
Save pwelter34/01faac6d72942c6e2d77 to your computer and use it in GitHub Desktop.
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