// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { // Add framework services. services.AddSingleton(Configuration); services.AddMvc(); Bootstrapper.Register(services); }
protected void Application_Start() { var container = Bootstrapper.Register(); GlobalConfiguration.Configure(config => WebApiConfig.Register(config, container)); }