当我说Web API可以在OWIN上运行而MVC 5不能运行时,我说的对吗?因此,在我的项目中,我仍然需要使用带有public class WebApiApplication : System.Web.HttpApplication的Global.asaxpublic void Configuration(IAppBuilder app) var httpConfig = new <em
我正在尝试用我的IIS托管的WebAPI 2.2应用程序来设置集成测试。我对DI使用Autofac,并且使用新的ASP.net标识堆栈,它使用OWIN。在Autofac中,HttpContext类总是为null,我遇到了一个问题。; private HttpConfiguration _configuration;pipeline through to the
我已经为Web Api 2安装了正确的包但是帮助区域没有映射,返回404 (Web Api我使用Microsoft.Owin.Host.SystemWeb作为主机。下面是我的启动代码。Startup public void Configuration(IAppBuilder app) //Required for
我正在开发一个Web,我决定使用自定义的DependencyResolver。我参考了的文章。到目前为止,在控制器的依赖注入方面,一切都运行得很好。Owin启动类中配置的代码片段{
_unityContainer = new UnityContainerconfig.DependencyResolver = new UnityResolver(_unityCo