Share via


ExecutionStrategyResolver<T> Class

Definition

An IDbDependencyResolver implementation used for resolving IDbExecutionStrategy factories.

public class ExecutionStrategyResolver<T> : System.Data.Entity.Infrastructure.DependencyResolution.IDbDependencyResolver where T : IDbExecutionStrategy
type ExecutionStrategyResolver<'T (requires 'T :> IDbExecutionStrategy)> = class
    interface IDbDependencyResolver
Public Class ExecutionStrategyResolver(Of T)
Implements IDbDependencyResolver

Type Parameters

T

The type of execution strategy that is resolved.

Inheritance
ExecutionStrategyResolver<T>
Implements

Remarks

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

Constructors

ExecutionStrategyResolver<T>(String, String, Func<T>)

Initializes a new instance of ExecutionStrategyResolver<T>

Methods

GetService(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.

GetServices(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.

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