Share via


TransactionHandlerResolver Constructor

Definition

Initializes a new instance of TransactionHandlerResolver

public TransactionHandlerResolver (Func<System.Data.Entity.Infrastructure.TransactionHandler> transactionHandlerFactory, string providerInvariantName, string serverName);
new System.Data.Entity.Infrastructure.DependencyResolution.TransactionHandlerResolver : Func<System.Data.Entity.Infrastructure.TransactionHandler> * string * string -> System.Data.Entity.Infrastructure.DependencyResolution.TransactionHandlerResolver
Public Sub New (transactionHandlerFactory As Func(Of TransactionHandler), providerInvariantName As String, serverName As String)

Parameters

transactionHandlerFactory
Func<TransactionHandler>

A function that returns a new instance of a transaction handler.

providerInvariantName
String

The ADO.NET provider invariant name indicating the type of ADO.NET connection for which the transaction handler will be used. null will match anything.

serverName
String

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

Applies to