protected void Application_Start() { AreaRegistration.RegisterAllAreas(); RouteConfig.RegisterRoutes(RouteTable.Routes); IocContainerConfig.RegisterDependencies(); MapperConfig.RegisterMappers(); }
public void Configuration(IAppBuilder app) { HttpConfiguration configuration = new HttpConfiguration(); configuration.DependencyResolver = IocContainerConfig.RegisterDependencies(); SwaggerConfig.Register(configuration); Configure(app); WebApiConfig.Register(configuration); app.UseWebApi(configuration); }
public static void Configure() { GlobalConfiguration.Configuration.DependencyResolver = IocContainerConfig.RegisterDependencies(); }