Share via


IDbDependencyResolver Interface

Definition

This interface is implemented by any object that can resolve a dependency, either directly or through use of an external container.

public interface IDbDependencyResolver
type IDbDependencyResolver = interface
Public Interface IDbDependencyResolver
Derived

Remarks

The public services currently resolved using IDbDependencyResolver are documented here: http://msdn.microsoft.com/en-us/data/jj680697

Methods

GetService(Type, Object)

Attempts to resolve a dependency for a given contract type and optionally a given key. If the resolver cannot resolve the dependency then it must return null and not throw. This allows resolvers to be used in a Chain of Responsibility pattern such that multiple resolvers can be asked to resolve a dependency until one finally does.

GetServices(Type, Object)

Attempts to resolve a dependencies for a given contract type and optionally a given key. If the resolver cannot resolve the dependency then it must return an empty enumeration and not throw. This method differs from GetService(Type, Object) in that it returns all registered services for the given type and key combination.

Extension Methods

GetService(IDbDependencyResolver, Type)

Calls GetService(Type, Object) passing the given type argument and using null for the name argument.

GetService<T>(IDbDependencyResolver, Object)

Calls GetService(Type, Object) passing the generic type of the method and the given name as arguments.

GetService<T>(IDbDependencyResolver)

Calls GetService(Type, Object) passing the generic type of the method as the type argument and null for the name argument.

GetServices(IDbDependencyResolver, Type)

Calls GetServices(Type, Object) passing the given type argument and using null for the name argument.

GetServices<T>(IDbDependencyResolver, Object)

Calls GetServices(Type, Object) passing the generic type of the method and the given name as arguments.

GetServices<T>(IDbDependencyResolver)

Calls GetServices(Type, Object) passing the generic type of the method as the type argument and null for the name argument.

Applies to