protected void Application_Start() { var bootStrapper = new WebBootStrapper(); bootStrapper.Initialize(); ControllerBuilder.Current.SetControllerFactory(new SMControllerFactory()); AreaRegistration.RegisterAllAreas(); RegisterRoutes(RouteTable.Routes); //RouteDebug.RouteDebugger.RewriteRoutesForTesting(RouteTable.Routes); }
public override void Configure(Container container) { //ASP.NET MVC integration ControllerBuilder.Current.SetControllerFactory(new FunqControllerFactory(container)); SetConfig(CreateEndpointHostConfig()); JsConfig.EmitCamelCaseNames = true; Plugins.Add(new ValidationFeature()); container.RegisterValidators(typeof(AppHost).Assembly); Plugins.Add(new AuthFeature(() => new AuthUserSession(), new IAuthProvider[] { new CredentialsAuthProvider() } )); WebBootStrapper.ConfigureDependencies(container); ConfigureAuthorization(container); MapperConfiguration.Configure(); }