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)

Syntax

'Declaration
Public Shared Sub SetResolver ( _
    getService As Func(Of Type, Object), _
    getServices As Func(Of Type, IEnumerable(Of Object)) _
)
'Usage
Dim getService As Func(Of Type, Object)
Dim getServices As Func(Of Type, IEnumerable(Of Object))

DependencyResolver.SetResolver(getService, getServices)
public static void SetResolver(
    Func<Type, Object> getService,
    Func<Type, IEnumerable<Object>> getServices
)
public:
static void SetResolver(
    Func<Type^, Object^>^ getService, 
    Func<Type^, IEnumerable<Object^>^>^ getServices
)
static member SetResolver : 
        getService:Func<Type, Object> * 
        getServices:Func<Type, IEnumerable<Object>> -> unit
public static function SetResolver(
    getService : Func<Type, Object>, 
    getServices : Func<Type, IEnumerable<Object>>
)

Parameters

Remarks

For more information about DependencyResolver, see the entry ASP.NET MVC 3 Service Location on Brad Wilson's blog.

See Also

Reference

DependencyResolver Class

SetResolver Overload

System.Web.Mvc Namespace