DependencyResolver Class

 

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

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

Inheritance Hierarchy

System.Object
  System.Web.Mvc.DependencyResolver

Syntax

public class DependencyResolver
public ref class DependencyResolver 
type DependencyResolver = class end
Public Class DependencyResolver

Constructors

Name Description
System_CAPS_pubmethod DependencyResolver()

Initializes a new instance of the DependencyResolver class.

Properties

Name Description
System_CAPS_pubpropertySystem_CAPS_static Current

Gets the implementation of the dependency resolver.

System_CAPS_pubproperty InnerCurrent

This API supports the ASP.NET MVC infrastructure and is not intended to be used directly from your code.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod 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.

System_CAPS_pubmethod InnerSetResolver(IDependencyResolver)

This API supports the ASP.NET MVC infrastructure and is not intended to be used directly from your code.

System_CAPS_pubmethod InnerSetResolver(Object)

This API supports the ASP.NET MVC infrastructure and is not intended to be used directly from your code.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_static 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.

System_CAPS_pubmethodSystem_CAPS_static SetResolver(IDependencyResolver)

Provides a registration point for dependency resolvers, using the specified dependency resolver interface.

System_CAPS_pubmethodSystem_CAPS_static SetResolver(Object)

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

System_CAPS_pubmethod ToString()

(Inherited from Object.)

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

System.Web.Mvc Namespace

Return to top