Share via


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

Definition

Initializes a new instance of ExecutionStrategyResolver<T>

public ExecutionStrategyResolver (string providerInvariantName, string serverName, Func<T> getExecutionStrategy);
new System.Data.Entity.Infrastructure.DependencyResolution.ExecutionStrategyResolver<'T (requires 'T :> System.Data.Entity.Infrastructure.IDbExecutionStrategy)> : string * string * Func<'T (requires 'T :> System.Data.Entity.Infrastructure.IDbExecutionStrategy)> -> System.Data.Entity.Infrastructure.DependencyResolution.ExecutionStrategyResolver<'T (requires 'T :> System.Data.Entity.Infrastructure.IDbExecutionStrategy)>
Public Sub New (providerInvariantName As String, serverName As String, getExecutionStrategy As Func(Of T))

Parameters

providerInvariantName
String

The ADO.NET provider invariant name indicating the type of ADO.NET connection for which this execution strategy will be used.

serverName
String

A string that will be matched against the server name in the connection string. null will match anything.

getExecutionStrategy
Func<T>

A function that returns a new instance of an execution strategy.

Applies to