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(); }
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(); }