示例#1
0
        public void Configuration(IAppBuilder app)
        {
            HttpConfiguration config = new HttpConfiguration();

            var container = new UnityContainer();

            IoCConfig.ConfigureDependencyInjection(config, container);

            WebApiConfig.ConfigureWebApi(config);

            OAuthConfig.ConfigureOAuth(app, container.Resolve <IUserApplicationService>());

            app.UseCors(CorsOptions.AllowAll);

            app.UseWebApi(config);
        }