186 transactionEventArgs._transaction = transaction.InternalClone();
187 eventHandler(transactionEventArgs.
_transaction, transactionEventArgs);
200 if (transactionStartedEventHandler !=
null)
203 transactionEventArgs._transaction = transaction.
InternalClone();
204 transactionStartedEventHandler(transactionEventArgs.
_transaction, transactionEventArgs);
210 if (resourceManagerIdentifier ==
Guid.
Empty)
214 if (recoveryInformation ==
null)
218 if (enlistmentNotification ==
null)
230 string nodeName =
null;
231 byte[] resourceManagerRecoveryInformation =
null;
245 resourceManagerRecoveryInformation = binaryReader.
ReadBytes(recoveryInformation.Length - checked((
int)memoryStream.
Position));
268 object syncRoot =
new object();
291 if (resourceManagerIdentifier ==
Guid.
Empty)
310 if ((uint)transactionIsolationLevel > 6u)
326 return transactionTimeout;
333 if (weakReference !=
null)
337 return transaction.InternalClone();
339 lock (promotedTransactionTable)
341 promotedTransactionTable.
Remove(transactionIdentifier);
351 lock (promotedTransactionTable)
354 if (weakReference !=
null)
357 if (
null != transaction)
362 lock (promotedTransactionTable)
364 promotedTransactionTable.
Remove(transactionIdentifier);
369 weakReference =
new WeakReference(transaction, trackResurrection:
false);
370 promotedTransactionTable[dtx.
Identifier] = weakReference;
372 dtx.SavedLtmPromotedTransaction = transaction;
virtual void Remove(object key)
static ? Delegate Remove(Delegate? source, Delegate? value)
static ? Delegate Combine(Delegate? a, Delegate? b)
override string ToString()
virtual string ReadString()
virtual byte[] ReadBytes(int count)
override void Dispose(bool disposing)
static string BadResourceManagerId
static string UnrecognizedRecoveryInformation
static string InvalidRecoveryInformation
static string CurrentDelegateSet
static DefaultSettingsSection GetSection()
static MachineSettingsSection GetSection()
void ResourceManagerRecoveryComplete(Guid resourceManagerIdentifier)
static EnlistmentStatePromoted EnlistmentStatePromoted
InternalEnlistment InternalEnlistment
static TimeSpan ValidateTimeout(TimeSpan transactionTimeout)
static Transaction FindPromotedTransaction(Guid transactionIdentifier)
static DistributedTransactionManager DistributedTransactionManager
static void RecoveryComplete(Guid resourceManagerIdentifier)
static TransactionStartedEventHandler s_distributedTransactionStartedDelegate
static object ClassSyncObject
static TransactionTable s_transactionTable
static Transaction FindOrCreatePromotedTransaction(Guid transactionIdentifier, DistributedTransaction dtx)
static Hashtable PromotedTransactionTable
static TimeSpan MaximumTimeout
static void FireDistributedTransactionStarted(Transaction transaction)
static DefaultSettingsSection DefaultSettings
static ? HostCurrentTransactionCallback HostCurrentCallback
static TimeSpan s_defaultTimeout
static bool s_defaultTimeoutValidated
static TimeSpan DefaultTimeout
static HostCurrentTransactionCallback s_currentDelegate
static Hashtable s_promotedTransactionTable
static bool s_cachedMaxTimeout
static ? TransactionStartedEventHandler DistributedTransactionStarted
static TransactionTable TransactionTable
static void ProcessExistingTransactions(TransactionStartedEventHandler eventHandler)
static MachineSettingsSection s_machineSettings
static DistributedTransactionManager CheckTransactionManager(string nodeName)
static Enlistment Reenlist(Guid resourceManagerIdentifier, byte[] recoveryInformation, IEnlistmentNotification enlistmentNotification)
static MachineSettingsSection MachineSettings
static void ValidateIsolationLevel(IsolationLevel transactionIsolationLevel)
static DistributedTransactionManager distributedTransactionManager
static IsolationLevel DefaultIsolationLevel
static DefaultSettingsSection s_defaultSettings
static object s_classSyncObject
static TimeSpan s_maximumTimeout
static bool s_currentDelegateSet
Transaction InternalClone()
InternalTransaction _internalTransaction
void TransactionExceptionTrace(TraceSourceType traceSource, TransactionExceptionType type, string message, string innerExceptionStr)
void ConfiguredDefaultTimeoutAdjusted()
void TransactionManagerRecoveryComplete(Guid resourceManagerID)
void MethodExit(TraceSourceType traceSource, object thisOrContextObject, [CallerMemberName] string methodname=null)
void TransactionManagerReenlist(Guid resourceManagerID)
static readonly TransactionsEtwProvider Log
void MethodEnter(TraceSourceType traceSource, object thisOrContextObject, [CallerMemberName] string methodname=null)
delegate void TransactionStartedEventHandler(object? sender, TransactionEventArgs e)
delegate? Transaction HostCurrentTransactionCallback()
@ InvalidOperationException
static readonly Guid Empty
static readonly TimeSpan Zero