DependencyResolver Class (System.Web.Mvc)

Switch View :
ScriptFree
.NET Framework Class Library
DependencyResolver Class

Provides a registration point for dependency resolvers that implement IDependencyResolver or the Common Service Locator IServiceLocator interface.

Inheritance Hierarchy

System.Object
  System.Web.Mvc.DependencyResolver

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

Visual Basic (Declaration)
Public Class DependencyResolver
Visual Basic (Usage)
Dim instance As DependencyResolver
C#
public class DependencyResolver
Visual C++
public ref class DependencyResolver
JScript
public class DependencyResolver

The DependencyResolver type exposes the following members.

Constructors

  Name Description
Public method DependencyResolver Initializes a new instance of the DependencyResolver class.
Top
Properties

  Name Description
Public property Static member Current Gets the implementation of the dependency resolver.
Public property InnerCurrent This API supports the ASP.NET MVC infrastructure and is not intended to be used directly from your code.
Top
Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method InnerSetResolver(Object) This API supports the ASP.NET MVC infrastructure and is not intended to be used directly from your code.
Public method InnerSetResolver(IDependencyResolver) This API supports the ASP.NET MVC infrastructure and is not intended to be used directly from your code.
Public method InnerSetResolver(Func<Type, Object>, Func<Type, IEnumerable<Object>>) This API supports the ASP.NET MVC infrastructure and is not intended to be used directly from your code.
Protected method MemberwiseClone (Inherited from Object.)
Public method Static member SetResolver(Object) Provides a registration point for dependency resolvers using the provided common service locator when using a service locator interface.
Public method Static member SetResolver(IDependencyResolver) Provides a registration point for dependency resolvers, using the specified dependency resolver interface.
Public method Static member SetResolver(Func<Type, Object>, Func<Type, IEnumerable<Object>>) Provides a registration point for dependency resolvers using the specified service delegate and specified service collection delegates.
Public method ToString (Inherited from Object.)
Top
Remarks

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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also

Reference