ExecutionStrategyResolver<T> Class

 

An IDbDependencyResolver implementation used for resolving IDbExecutionStrategy factories.

Namespace:   System.Data.Entity.Infrastructure.DependencyResolution
Assembly:  EntityFramework (in EntityFramework.dll)

System.Object
  System.Data.Entity.Infrastructure.DependencyResolution.ExecutionStrategyResolver<T>

public class ExecutionStrategyResolver<T> : IDbDependencyResolver
where T : IDbExecutionStrategy

Type Parameters

T

The type of execution strategy that is resolved.

NameDescription
System_CAPS_pubmethodExecutionStrategyResolver<T>(String, String, Func<T>)

Initializes a new instance of ExecutionStrategyResolver<T>

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetService(Type, Object)

If the given type is Func<TResult>, then this resolver will attempt to return the service to use, otherwise it will return null. When the given type is Func{IExecutionStrategy}, then the key is expected to be an ExecutionStrategyKey.

System_CAPS_pubmethodGetServices(Type, Object)

If the given type is Func<TResult>, then this resolver will attempt to return the service to use, otherwise it will return an empty enumeration. When the given type is Func{IExecutionStrategy}, then the key is expected to be an ExecutionStrategyKey.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubmethodGetService(Type)

Overloaded. Calls GetService passing the given type argument and using null for the name argument.(Defined by DbDependencyResolverExtensions.)

System_CAPS_pubmethodGetService<T>()

Overloaded. Calls GetService passing the generic type of the method as the type argument and null for the name argument.(Defined by DbDependencyResolverExtensions.)

System_CAPS_pubmethodGetService<T>(Object)

Overloaded. Calls GetService passing the generic type of the method and the given name as arguments.(Defined by DbDependencyResolverExtensions.)

System_CAPS_pubmethodGetServices(Type)

Overloaded. Calls GetServices passing the given type argument and using null for the name argument.(Defined by DbDependencyResolverExtensions.)

System_CAPS_pubmethodGetServices<T>()

Overloaded. Calls GetServices passing the generic type of the method as the type argument and null for the name argument.(Defined by DbDependencyResolverExtensions.)

System_CAPS_pubmethodGetServices<T>(Object)

Overloaded. Calls GetServices passing the generic type of the method and the given name as arguments.(Defined by DbDependencyResolverExtensions.)

This class can be used by DbProviderServices to aid in the resolving of IDbExecutionStrategy factories as a default service for the provider.

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