Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ EnlistmentTraceId

EnlistmentTraceIdentifier System.Transactions.InternalEnlistment.EnlistmentTraceId
getpackageinherited

Definition at line 110 of file InternalEnlistment.cs.

111 {
112 get
113 {
114 if (_traceIdentifier == EnlistmentTraceIdentifier.Empty)
115 {
116 lock (SyncRoot)
117 {
118 if (_traceIdentifier == EnlistmentTraceIdentifier.Empty)
119 {
120 EnlistmentTraceIdentifier traceIdentifier;
121 if (null != _atomicTransaction)
122 {
123 traceIdentifier = new EnlistmentTraceIdentifier(Guid.Empty, _atomicTransaction.TransactionTraceId, _enlistmentId);
124 }
125 else
126 {
127 Guid empty = Guid.Empty;
128 IFormatProvider invariantCulture = CultureInfo.InvariantCulture;
129 DefaultInterpolatedStringHandler handler = new DefaultInterpolatedStringHandler(0, 2, invariantCulture);
130 handler.AppendFormatted(InternalTransaction.InstanceIdentifier);
131 handler.AppendFormatted(Interlocked.Increment(ref InternalTransaction._nextHash));
132 traceIdentifier = new EnlistmentTraceIdentifier(empty, new TransactionTraceIdentifier(string.Create(invariantCulture, ref handler), 0), _enlistmentId);
133 }
135 _traceIdentifier = traceIdentifier;
136 }
137 }
138 }
139 return _traceIdentifier;
140 }
141 }
static CultureInfo InvariantCulture
static int Increment(ref int location)
EnlistmentTraceIdentifier _traceIdentifier
TransactionTraceIdentifier TransactionTraceId

Referenced by System.Transactions.EnlistableStates.EnlistDurable(), System.Transactions.TransactionsEtwProvider.EnlistmentAborted(), System.Transactions.TransactionsEtwProvider.EnlistmentCommitted(), System.Transactions.TransactionsEtwProvider.EnlistmentDone(), System.Transactions.TransactionsEtwProvider.EnlistmentForceRollback(), System.Transactions.TransactionsEtwProvider.EnlistmentInDoubt(), System.Transactions.TransactionsEtwProvider.EnlistmentPrepared(), System.Transactions.TransactionsEtwProvider.EnlistmentStatus(), System.Transactions.TransactionStateActive.EnlistPromotableSinglePhase(), System.Transactions.TransactionStatePhase0.EnlistPromotableSinglePhase(), System.Transactions.TransactionStateActive.EnlistVolatile(), System.Transactions.TransactionStatePhase0.EnlistVolatile(), System.Transactions.TransactionStatePromotedNonMSDTCBase.EnlistVolatile(), System.Transactions.TransactionStateActive.EnlistVolatile(), System.Transactions.TransactionStatePhase0.EnlistVolatile(), and System.Transactions.TransactionStatePromotedNonMSDTCBase.EnlistVolatile().