SingletonDependencyResolver<T>.GetServices Method (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.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- type
-
Type:
System.Type
The interface or abstract base class that defines the dependency to be resolved. Every returned object is expected to be an instance of this type.
- key
-
Type:
System.Object
Optionally, the key of the dependency to be resolved. This may be null for dependencies that are not differentiated by key.
Return Value
Type: System.Collections.Generic.IEnumerable<Object>All services that resolve the dependency, which must be instances of the given contract type, or an empty enumeration if the dependency could not be resolved.