Пример #1
0
 public static void Bootstrap()
 {
     RouteConfigurator.RegisterRoutes(RouteTable.Routes);
     ControllerBuilder.Current.SetControllerFactory(new WindsorControllerFactory(IoC.Container));
     WindsorConfigurator.Configure();
     AwesomeConfigurator.Configure();
 }
Пример #2
0
        public static void Bootstrap()
        {
            RouteConfigurator.RegisterRoutes(RouteTable.Routes);
            ControllerBuilder.Current.SetControllerFactory(new WindsorControllerFactory(IoC.Container));
            WindsorConfigurator.Configure();
            AwesomeConfigurator.Configure();

            Globals.PicturesPath = HttpContext.Current.Server.MapPath("~/pictures");
            new Worker().Start();
        }