Esempio n. 1
0
 public static void Bootstrap()
 {
     RouteConfigurator.RegisterRoutes(RouteTable.Routes);
     ControllerBuilder.Current.SetControllerFactory(new WindsorControllerFactory(IoC.Container));
     WindsorConfig.Configure();
     AwesomeConfig.Configure();
     MapperConfig.Configure();
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     Globals.PicturesPath = HttpContext.Current.Server.MapPath("~/pictures");
     new Worker().Start();
 }
Esempio n. 2
0
        public static void Bootstrap()
        {
            RouteConfigurator.RegisterRoutes(RouteTable.Routes);
            ControllerBuilder.Current.SetControllerFactory(new WindsorControllerFactory(IoC.Container));
            WindsorConfig.Configure();
            AwesomeConfig.Configure();
            MapperConfig.Configure();
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            FilterProviders.Providers.Add(new AntiForgeryTokenFilter());
            AntiForgeryConfig.UniqueClaimTypeIdentifier = ClaimTypes.Name;

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