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)
public: static void SetResolver( Func<Type^, Object^>^ getService, Func<Type^, IEnumerable<Object^>^>^ getServices )
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: