protected InternalEnlistment(System.Transactions.Enlistment enlistment, IEnlistmentNotification twoPhaseNotifications) { this.enlistment = enlistment; this.twoPhaseNotifications = twoPhaseNotifications; this.enlistmentId = 1; this.traceIdentifier = EnlistmentTraceIdentifier.Empty; }
protected InternalEnlistment(System.Transactions.Enlistment enlistment, InternalTransaction transaction, System.Transactions.Transaction atomicTransaction) { this.enlistment = enlistment; this.transaction = transaction; this.atomicTransaction = atomicTransaction; this.enlistmentId = transaction.enlistmentCount++; this.traceIdentifier = EnlistmentTraceIdentifier.Empty; }
internal static void WriteEnId(XmlWriter writer, EnlistmentTraceIdentifier enId) { writer.WriteStartElement("EnlistmentTraceIdentifier"); writer.WriteElementString("ResourceManagerId", enId.ResourceManagerIdentifier.ToString()); WriteTxId(writer, enId.TransactionTraceId); writer.WriteElementString("EnlistmentIdentifier", enId.EnlistmentIdentifier.ToString(CultureInfo.CurrentCulture)); writer.WriteEndElement(); }
internal static void Trace(string traceSource, EnlistmentTraceIdentifier enTraceId, NotificationCall notCall) { lock (record) { record.traceSource = traceSource; record.enTraceId = enTraceId; record.notCall = notCall; DiagnosticTrace.TraceEvent(TraceEventType.Verbose, "http://msdn.microsoft.com/2004/06/System/Transactions/EnlistmentNotificationCall", System.Transactions.SR.GetString("TraceEnlistmentNotificationCall"), record); } }
internal InternalEnlistment(System.Transactions.Enlistment enlistment, InternalTransaction transaction, IEnlistmentNotification twoPhaseNotifications, ISinglePhaseNotification singlePhaseNotifications, System.Transactions.Transaction atomicTransaction) { this.enlistment = enlistment; this.transaction = transaction; this.twoPhaseNotifications = twoPhaseNotifications; this.singlePhaseNotifications = singlePhaseNotifications; this.atomicTransaction = atomicTransaction; this.enlistmentId = transaction.enlistmentCount++; this.traceIdentifier = EnlistmentTraceIdentifier.Empty; }
internal static void Trace(string traceSource, EnlistmentTraceIdentifier enTraceId, EnlistmentCallback callback) { lock (record) { record.traceSource = traceSource; record.enTraceId = enTraceId; record.callback = callback; DiagnosticTrace.TraceEvent(TraceEventType.Verbose, "http://msdn.microsoft.com/2004/06/System/Transactions/EnlistmentCallbackPositive", System.Transactions.SR.GetString("TraceEnlistmentCallbackPositive"), record); } }
internal static void Trace(string traceSource, EnlistmentTraceIdentifier enTraceId, EnlistmentType enType, EnlistmentOptions enOptions) { lock (record) { record.traceSource = traceSource; record.enTraceId = enTraceId; record.enType = enType; record.enOptions = enOptions; DiagnosticTrace.TraceEvent(TraceEventType.Information, "http://msdn.microsoft.com/2004/06/System/Transactions/Enlistment", System.Transactions.SR.GetString("TraceEnlistment"), record); } }
// For Promotable Enlistments protected InternalEnlistment( Enlistment enlistment, InternalTransaction transaction, Transaction atomicTransaction ) { Debug.Assert(this is PromotableInternalEnlistment, "this is PromotableInternalEnlistment"); this.enlistment = enlistment; this.transaction = transaction; this.atomicTransaction = atomicTransaction; this.enlistmentId = transaction.enlistmentCount++; this.traceIdentifier = EnlistmentTraceIdentifier.Empty; }
internal InternalEnlistment( Enlistment enlistment, InternalTransaction transaction, IEnlistmentNotification twoPhaseNotifications, ISinglePhaseNotification singlePhaseNotifications, Transaction atomicTransaction) { _enlistment = enlistment; _transaction = transaction; _twoPhaseNotifications = twoPhaseNotifications; _singlePhaseNotifications = singlePhaseNotifications; _atomicTransaction = atomicTransaction; _enlistmentId = transaction._enlistmentCount++; _traceIdentifier = EnlistmentTraceIdentifier.Empty; }
public OletxBaseEnlistment(OletxResourceManager oletxResourceManager, OletxTransaction oletxTransaction) { this.oletxResourceManager = oletxResourceManager; this.oletxTransaction = oletxTransaction; if (oletxTransaction != null) { this.enlistmentId = oletxTransaction.realOletxTransaction.enlistmentCount++; this.transactionGuidString = oletxTransaction.realOletxTransaction.TxGuid.ToString(); } else { this.transactionGuidString = Guid.Empty.ToString(); } this.traceIdentifier = EnlistmentTraceIdentifier.Empty; }
internal InternalEnlistment( Enlistment enlistment, InternalTransaction transaction, IEnlistmentNotification twoPhaseNotifications, ISinglePhaseNotification singlePhaseNotifications, Transaction atomicTransaction ) { this.enlistment = enlistment; this.transaction = transaction; this.twoPhaseNotifications = twoPhaseNotifications; this.singlePhaseNotifications = singlePhaseNotifications; this.atomicTransaction = atomicTransaction; this.enlistmentId = transaction.enlistmentCount++; this.traceIdentifier = EnlistmentTraceIdentifier.Empty; }
public override bool Equals(object objectToCompare) { if (!(objectToCompare is EnlistmentTraceIdentifier)) { return(false); } EnlistmentTraceIdentifier id = ( EnlistmentTraceIdentifier )objectToCompare; if ((id.ResourceManagerIdentifier != this.ResourceManagerIdentifier) || (id.TransactionTraceId != this.TransactionTraceId) || (id.EnlistmentIdentifier != this.EnlistmentIdentifier)) { return(false); } return(true); }
internal void TransactionstateEnlist(EnlistmentTraceIdentifier enlistmentID, EnlistmentType enlistmentType, EnlistmentOptions enlistmentOption) { if (IsEnabled(EventLevel.Informational, ALL_KEYWORDS)) { TransactionstateEnlist(enlistmentID.EnlistmentIdentifier.ToString(), enlistmentType.ToString(), enlistmentOption.ToString()); } }
// For Recovering Enlistments protected InternalEnlistment( Enlistment enlistment, IEnlistmentNotification twoPhaseNotifications ) { Debug.Assert(this is RecoveringInternalEnlistment, "this is RecoveringInternalEnlistment"); this.enlistment = enlistment; this.twoPhaseNotifications = twoPhaseNotifications; this.enlistmentId = 1; this.traceIdentifier = EnlistmentTraceIdentifier.Empty; }
static EnlistmentTraceIdentifier() { Empty = new EnlistmentTraceIdentifier(); }