Export (0) Print
Expand All

DependencyResolver Class

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

System.Object
  System.Web.Mvc.DependencyResolver

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

public class DependencyResolver

The DependencyResolver type exposes the following members.

  NameDescription
Public methodDependencyResolverInitializes a new instance of the DependencyResolver class.
Top

  NameDescription
Public propertyStatic memberCurrentGets the implementation of the dependency resolver.
Public propertyInnerCurrentThis API supports the ASP.NET MVC infrastructure and is not intended to be used directly from your code.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodInnerSetResolver(Object)This API supports the ASP.NET MVC infrastructure and is not intended to be used directly from your code.
Public methodInnerSetResolver(IDependencyResolver)This API supports the ASP.NET MVC infrastructure and is not intended to be used directly from your code.
Public methodInnerSetResolver(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 methodMemberwiseClone (Inherited from Object.)
Public methodStatic memberSetResolver(Object)Provides a registration point for dependency resolvers using the provided common service locator when using a service locator interface.
Public methodStatic memberSetResolver(IDependencyResolver)Provides a registration point for dependency resolvers, using the specified dependency resolver interface.
Public methodStatic memberSetResolver(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 methodToString (Inherited from Object.)
Top

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft