internal static void WriteEnId(XmlWriter writer, EnlistmentTraceIdentifier enId) { writer.WriteStartElement("EnlistmentTraceIdentifier"); writer.WriteElementString("ResourceManagerId", enId.ResourceManagerIdentifier.ToString()); TraceHelper.WriteTxId(writer, enId.TransactionTraceId); writer.WriteElementString("EnlistmentIdentifier", enId.EnlistmentIdentifier.ToString( CultureInfo.CurrentCulture ) ); writer.WriteEndElement(); }
internal static void Trace(string traceSource, EnlistmentTraceIdentifier enTraceId, EnlistmentCallback callback) { lock (s_record) { s_record._traceSource = traceSource; s_record._enTraceId = enTraceId; s_record._callback = callback; DiagnosticTrace.TraceEvent(TraceEventType.Warning, TransactionsTraceCode.EnlistmentCallbackNegative, SR.TraceEnlistmentCallbackNegative, s_record); } }
internal static void Trace(string traceSource, EnlistmentTraceIdentifier enTraceId, NotificationCall notCall) { lock (s_record) { s_record._traceSource = traceSource; s_record._enTraceId = enTraceId; s_record._notCall = notCall; DiagnosticTrace.TraceEvent(TraceEventType.Verbose, TransactionsTraceCode.EnlistmentNotificationCall, SR.TraceEnlistmentNotificationCall, s_record); } }
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 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, TransactionsTraceCode.Enlistment, SR.GetString(SR.TraceEnlistment), record); } }
public OletxBaseEnlistment(OletxResourceManager oletxResourceManager, OletxTransaction?oletxTransaction) { Guid resourceManagerId = Guid.Empty; EnlistmentGuid = Guid.NewGuid(); OletxResourceManager = oletxResourceManager; this.oletxTransaction = oletxTransaction; if (oletxTransaction != null) { EnlistmentId = oletxTransaction.RealOletxTransaction._enlistmentCount++; TransactionGuidString = oletxTransaction.RealOletxTransaction.TxGuid.ToString(); } else { TransactionGuidString = Guid.Empty.ToString(); } 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.Warning, TransactionsTraceCode.EnlistmentCallbackNegative, SR.GetString( SR.TraceEnlistmentCallbackNegative ), record); } }
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, TransactionsTraceCode.EnlistmentNotificationCall, SR.GetString( SR.TraceEnlistmentNotificationCall ), 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, TransactionsTraceCode.Enlistment, SR.GetString( SR.TraceEnlistment ), record); } }
public OletxBaseEnlistment( OletxResourceManager oletxResourceManager, OletxTransaction oletxTransaction ) { Guid resourceManagerId = Guid.Empty; enlistmentGuid = Guid.NewGuid(); this.oletxResourceManager = oletxResourceManager; this.oletxTransaction = oletxTransaction; if ( null != oletxTransaction ) { this.enlistmentId = oletxTransaction.realOletxTransaction.enlistmentCount++; this.transactionGuidString = oletxTransaction.realOletxTransaction.TxGuid.ToString(); } else { this.transactionGuidString = Guid.Empty.ToString(); } this.traceIdentifier = EnlistmentTraceIdentifier.Empty; }