コード例 #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();
        }