internal static void Trace(string traceSource, TransactionTraceIdentifier txTraceId) { lock (record) { record.traceSource = traceSource; record.txTraceId = txTraceId; DiagnosticTrace.TraceEvent(TraceEventType.Information, "http://msdn.microsoft.com/2004/06/System/Transactions/DependentCloneComplete", System.Transactions.SR.GetString("TraceDependentCloneComplete"), record); } }
internal static void Trace(string traceSource, TransactionTraceIdentifier txTraceId) { lock (record) { record.traceSource = traceSource; record.txTraceId = txTraceId; DiagnosticTrace.TraceEvent(TraceEventType.Warning, "http://msdn.microsoft.com/2004/06/System/Transactions/TransactionScopeNestedIncorrectly", System.Transactions.SR.GetString("TraceTransactionScopeNestedIncorrectly"), record); } }
public EnlistmentTraceIdentifier( Guid resourceManagerIdentifier, TransactionTraceIdentifier transactionTraceId, int enlistmentIdentifier) { _resourceManagerIdentifier = resourceManagerIdentifier; _transactionTraceIdentifier = transactionTraceId; _enlistmentIdentifier = enlistmentIdentifier; }
internal static void Trace(string traceSource, TransactionTraceIdentifier txTraceId) { lock (record) { record.traceSource = traceSource; record.txTraceId = txTraceId; DiagnosticTrace.TraceEvent(TraceEventType.Verbose, "http://msdn.microsoft.com/2004/06/System/Transactions/TransactionDeserialized", System.Transactions.SR.GetString("TraceTransactionDeserialized"), record); } }
public EnlistmentTraceIdentifier( Guid resourceManagerIdentifier, TransactionTraceIdentifier transactionTraceId, int enlistmentIdentifier ) { this.resourceManagerIdentifier = resourceManagerIdentifier; this.transactionTraceIdentifier = transactionTraceId; this.enlistmentIdentifier = enlistmentIdentifier; }
public EnlistmentTraceIdentifier( Guid resourceManagerIdentifier, TransactionTraceIdentifier transactionTraceId, int enlistmentIdentifier ) { this.resourceManagerIdentifier = resourceManagerIdentifier; this.transactionTraceIdentifier = transactionTraceId; this.enlistmentIdentifier = enlistmentIdentifier; }
internal static void Trace(string traceSource, TransactionTraceIdentifier localTxTraceId, TransactionTraceIdentifier distTxTraceId) { lock (record) { record.traceSource = traceSource; record.localTxTraceId = localTxTraceId; record.distTxTraceId = distTxTraceId; DiagnosticTrace.TraceEvent(TraceEventType.Information, "http://msdn.microsoft.com/2004/06/System/Transactions/TransactionPromoted", System.Transactions.SR.GetString("TraceTransactionPromoted"), record); } }
public override bool Equals(object objectToCompare) { if (!(objectToCompare is TransactionTraceIdentifier)) { return(false); } TransactionTraceIdentifier identifier = (TransactionTraceIdentifier)objectToCompare; return(!(identifier.TransactionIdentifier != this.TransactionIdentifier) && (identifier.CloneIdentifier == this.CloneIdentifier)); }
internal static void Trace(string traceSource, TransactionTraceIdentifier txTraceId, TransactionScopeResult txScopeResult) { lock (record) { record.traceSource = traceSource; record.txTraceId = txTraceId; record.txScopeResult = txScopeResult; DiagnosticTrace.TraceEvent(TraceEventType.Information, "http://msdn.microsoft.com/2004/06/System/Transactions/TransactionScopeCreated", System.Transactions.SR.GetString("TraceTransactionScopeCreated"), record); } }
public override bool Equals(object objectToCompare) { if (!(objectToCompare is TransactionTraceIdentifier)) { return(false); } TransactionTraceIdentifier id = (TransactionTraceIdentifier)objectToCompare; if ((id.TransactionIdentifier != this.TransactionIdentifier) || (id.CloneIdentifier != this.CloneIdentifier)) { return(false); } return(true); }
internal static void WriteTxId(XmlWriter writer, TransactionTraceIdentifier txTraceId) { writer.WriteStartElement("TransactionTraceIdentifier"); if (txTraceId.TransactionIdentifier != null) { writer.WriteElementString("TransactionIdentifier", txTraceId.TransactionIdentifier); } else { writer.WriteElementString("TransactionIdentifier", ""); } int cloneIdentifier = txTraceId.CloneIdentifier; if (cloneIdentifier != 0) { writer.WriteElementString("CloneIdentifier", cloneIdentifier.ToString(CultureInfo.CurrentCulture)); } writer.WriteEndElement(); }
internal void TransactionScopeTimeout(TransactionTraceIdentifier transactionID) { if (IsEnabled(EventLevel.Warning, ALL_KEYWORDS)) { if (transactionID != null && transactionID.TransactionIdentifier != null) TransactionScopeTimeout(transactionID.TransactionIdentifier.ToString()); else TransactionScopeTimeout(String.Empty); } }
static TransactionTraceIdentifier() { Empty = new TransactionTraceIdentifier(); }
internal void TransactionInDoubt(TransactionTraceIdentifier transactionID) { if (IsEnabled(EventLevel.Warning, ALL_KEYWORDS)) { TransactionInDoubt(transactionID.TransactionIdentifier.ToString()); } }
internal void TransactionCommitted(TransactionTraceIdentifier transactionID) { if (IsEnabled(EventLevel.Verbose, ALL_KEYWORDS)) { TransactionCommitted(transactionID.TransactionIdentifier.ToString()); } }
internal void TransactionScopeDisposed(TransactionTraceIdentifier transactionID) { if (IsEnabled(EventLevel.Informational, ALL_KEYWORDS)) { TransactionScopeDisposed(transactionID.TransactionIdentifier.ToString()); } }
internal void TransactionScopeNestedIncorrectly(TransactionTraceIdentifier transactionID) { if (IsEnabled(EventLevel.Warning, ALL_KEYWORDS)) { TransactionScopeNestedIncorrectly(transactionID.TransactionIdentifier.ToString()); } }
internal void TransactionScopeCurrentChanged(TransactionTraceIdentifier currenttransactionID, TransactionTraceIdentifier newtransactionID) { if (IsEnabled(EventLevel.Warning, ALL_KEYWORDS)) { TransactionScopeCurrentChanged(currenttransactionID.TransactionIdentifier.ToString(), newtransactionID.TransactionIdentifier.ToString()); } }
internal void TransactionScopeCreated(TransactionTraceIdentifier transactionID, TransactionScopeResult transactionScopeResult ) { if (IsEnabled(EventLevel.Informational, ALL_KEYWORDS)) { TransactionScopeCreated(transactionID.TransactionIdentifier.ToString(), transactionScopeResult); } }
internal void TransactionPromoted(TransactionTraceIdentifier txID, TransactionTraceIdentifier distributedTxID) { if (IsEnabled(EventLevel.Informational, ALL_KEYWORDS)) { TransactionPromoted(txID.TransactionIdentifier.ToString(), distributedTxID.TransactionIdentifier.ToString()); } }
static TransactionTraceIdentifier() { Empty = new TransactionTraceIdentifier(); }
internal void TransactionCommitted(TransactionTraceIdentifier transactionID) { if (IsEnabled(EventLevel.Verbose, ALL_KEYWORDS)) { if (transactionID != null && transactionID.TransactionIdentifier != null) TransactionCommitted(transactionID.TransactionIdentifier.ToString()); else TransactionCommitted(String.Empty); } }
internal void TransactionPromoted(TransactionTraceIdentifier transactionID, TransactionTraceIdentifier distributedTxID) { if (IsEnabled(EventLevel.Informational, ALL_KEYWORDS)) { String id = String.Empty; String distributedId = String.Empty; if (transactionID != null && transactionID.TransactionIdentifier != null) id= transactionID.TransactionIdentifier.ToString(); if (distributedTxID != null && distributedTxID.TransactionIdentifier != null) distributedId = distributedTxID.TransactionIdentifier.ToString(); TransactionPromoted(id, distributedId); } }
internal void TransactionScopeDisposed(TransactionTraceIdentifier transactionID) { if (IsEnabled(EventLevel.Informational, ALL_KEYWORDS)) { if (transactionID != null && transactionID.TransactionIdentifier != null) TransactionScopeDisposed(transactionID.TransactionIdentifier.ToString()); else TransactionScopeDisposed(String.Empty); } }
internal void TransactionScopeCurrentChanged(TransactionTraceIdentifier currenttransactionID, TransactionTraceIdentifier newtransactionID) { if (IsEnabled(EventLevel.Warning, ALL_KEYWORDS)) { String currentId = String.Empty; String newId = String.Empty; if (currenttransactionID != null && currenttransactionID.TransactionIdentifier != null) { currentId = currenttransactionID.TransactionIdentifier.ToString(); } if (newtransactionID!= null && newtransactionID.TransactionIdentifier != null) { newId = newtransactionID.TransactionIdentifier.ToString(); } TransactionScopeCurrentChanged(currentId, newId); } }