SingletonDependencyResolver<T> Class
Implements IDbDependencyResolver to resolve a dependency such that it always returns the same instance.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | SingletonDependencyResolver<T>(T) | Constructs a new resolver that will return the given instance for the contract type regardless of the key passed to the Get method. |
![]() | SingletonDependencyResolver<T>(T, Func<Object, Boolean>) | Constructs a new resolver that will return the given instance for the contract type if the given key matches the key passed to the Get method based on the given predicate. |
![]() | SingletonDependencyResolver<T>(T, Object) | Constructs a new resolver that will return the given instance for the contract type if the given key matches exactly the key passed to the Get method. |
Name | Description | |
---|---|---|
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | 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. |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() | GetService(Type) | Overloaded. Calls GetService passing the given type argument and using null for the name argument.(Defined by DbDependencyResolverExtensions.) |
![]() | GetService<T>() | Overloaded. Calls GetService passing the generic type of the method as the type argument and null for the name argument.(Defined by DbDependencyResolverExtensions.) |
![]() | GetService<T>(Object) | Overloaded. Calls GetService passing the generic type of the method and the given name as arguments.(Defined by DbDependencyResolverExtensions.) |
![]() | GetServices(Type) | Overloaded. Calls GetServices passing the given type argument and using null for the name argument.(Defined by DbDependencyResolverExtensions.) |
![]() | GetServices<T>() | Overloaded. Calls GetServices passing the generic type of the method as the type argument and null for the name argument.(Defined by DbDependencyResolverExtensions.) |
![]() | GetServices<T>(Object) | Overloaded. Calls GetServices passing the generic type of the method and the given name as arguments.(Defined by DbDependencyResolverExtensions.) |
This class is immutable such that instances can be accessed by multiple threads at the same time.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.