Esempio n. 1
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            RouteConfig.RegisterRoutes(RouteTable.Routes);

            IocContainerConfig.RegisterDependencies();
            MapperConfig.RegisterMappers();
        }
Esempio n. 2
0
        public void Configuration(IAppBuilder app)
        {
            HttpConfiguration configuration = new HttpConfiguration();

            configuration.DependencyResolver = IocContainerConfig.RegisterDependencies();

            SwaggerConfig.Register(configuration);

            Configure(app);

            WebApiConfig.Register(configuration);
            app.UseWebApi(configuration);
        }
Esempio n. 3
0
 public static void Configure()
 {
     GlobalConfiguration.Configuration.DependencyResolver = IocContainerConfig.RegisterDependencies();
 }