Export (0) Print
Expand All

DependencyResolver.SetResolver Method (Object)

Provides a registration point for dependency resolvers using the provided common service locator when using a service locator interface.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public static void SetResolver(
	Object commonServiceLocator
)

Parameters

commonServiceLocator
Type: System.Object

The common service locator.

The commonServiceLocator parameter can be an instance of IDependencyResolver or an object that implements the Common Service Locator IServiceLocator interface. For more information about Common Service Locator, see Common Service Locator Library on the CodePlex Web site. For more information about DependencyResolver, see the entry ASP.NET MVC 3 Service Location on Brad Wilson's blog.

Show:
© 2015 Microsoft