DependencyResolver.SetResolver Method (Func(Type, Object), Func(Type, IEnumerable(Object)))
Provides a registration point for dependency resolvers using the specified service delegate and specified service collection delegates.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
static member SetResolver : getService:Func<Type, Object> * getServices:Func<Type, IEnumerable<Object>> -> unit
Parameters
- getService
- Type: System.Func(Type, Object)
The service delegate.
- getServices
- Type: System.Func(Type, IEnumerable(Object))
The services delegates.
For more information about DependencyResolver, see the entry ASP.NET MVC 3 Service Location on Brad Wilson's blog.
Show: