Beispiel #1
0
        protected void Application_Start()
        {
            HttpConfiguration config = new HttpConfiguration();

            GlobalConfiguration.Configure(WebApiConfig.Register);
            DryIocConfig.Configure(config);
        }
Beispiel #2
0
        public void Configuration(IAppBuilder app)
        {
            // For more information on how to configure your application, visit http://go.microsoft.com/fwlink/?LinkID=316888
            HttpConfiguration config = new HttpConfiguration();


            WebApiConfig.Register(config);
            DryIocConfig.Configure(config);

            app.UseWebApi(config);
        }