Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static class Bootsrap
- {
- private static Container _container;
- public static void Run()
- {
- _container = new Container(x =>
- x.Scan(r =>
- {
- r.TheCallingAssembly();
- r.LookForRegistries();
- }));
- DependencyResolver.SetResolver(new StructureMapDependencyResolver(_container));
- }
- }
Add Comment
Please, Sign In to add comment