I'm migrating my site, from asp.net 4.5 to 5.0. Previously, I used System.Web.Mvc
to get DependencyResolver.SetResolve
to register dependencies. Is there any publication or documentation that can point me to the new Microsoft.AspNet.Mvc
version?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
http://docs.asp.net/en/latest/fundamentals/dependency-injection.html
That's official documentation for dependency injection for asp.net 5.
Dependency injection is now built into asp.net 5 but you are free to use other libraries like autofac. The default one is working fine for me.
In your starup class, you have a method like this
These are some Service Lifetimes and Registration Options