Exemplo n.º 1
0
 protected void Application_Start()
 {
     //AreaRegistration.RegisterAllAreas();
     DatabaseConfig.Initialize();
     AutoMapperConfig.RegisterMappings(Assembly.Load(Assemblies.WebApi));
     GlobalConfiguration.Configure(WebApiConfig.Register);
     //FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     //RouteConfig.RegisterRoutes(RouteTable.Routes);
     //BundleConfig.RegisterBundles(BundleTable.Bundles);
 }
Exemplo n.º 2
0
        public void Configuration(IAppBuilder app)
        {
            app.UseCors(CorsOptions.AllowAll);

            DatabaseConfig.Initialize();
            AutoMapperConfig.RegisterMappings(Assembly.Load(Assemblies.WebApi));

            var config = new HttpConfiguration();

            WebApiConfig.Register(config);
            ConfigureAuth(app);

            app
            .UseNinjectMiddleware(NinjectConfig.CreateKernel)
            .UseNinjectWebApi(config);
        }
Exemplo n.º 3
0
 protected void Application_Start()
 {
     DatabaseConfig.Initialize();
     GlobalConfiguration.Configure(WebApiConfig.Register);
 }
Exemplo n.º 4
0
 protected void Application_Start()
 {
     DatabaseConfig.Initialize();
     AutoMapperConfig.RegisterMappings(Assembly.Load(Assemblies.WebApi));
 }