Created
May 27, 2014 18:32
-
-
Save pwelter34/01faac6d72942c6e2d77 to your computer and use it in GitHub Desktop.
Bootstrap fluent interface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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