Пример #1
0
        // 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);
        }
Пример #2
0
        protected void Application_Start()
        {
            var container = Bootstrapper.Register();

            GlobalConfiguration.Configure(config => WebApiConfig.Register(config, container));
        }