コード例 #1
0
ファイル: Startup.cs プロジェクト: Varcal/EstudoDDD
        // 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
ファイル: Global.asax.cs プロジェクト: florimm/Talks
        protected void Application_Start()
        {
            var container = Bootstrapper.Register();

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