Export (0) Print
Expand All

DependencyResolver.SetResolver Method (Func(Of Type, Object), Func(Of Type, IEnumerable(Of 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)

'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)

Parameters

getService
Type: System.Func(Of Type, Object)

The service delegate.

getServices
Type: System.Func(Of Type, IEnumerable(Of Object))

The services delegates.

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

Show:
© 2014 Microsoft