using System; using System.Collections; namespace System.Diagnostics { /// Correlates traces that are part of a logical transaction. /// 2 // Token: 0x020000DE RID: 222 public class CorrelationManager { // Token: 0x0600076C RID: 1900 RVA: 0x00013EF4 File Offset: 0x000120F4 internal CorrelationManager() { } /// Gets or sets the identity for a global activity. /// A structure that identifies the global activity. /// 1 // Token: 0x170001C3 RID: 451 // (get) Token: 0x0600076D RID: 1901 RVA: 0x00013F08 File Offset: 0x00012108 // (set) Token: 0x0600076E RID: 1902 RVA: 0x00013F10 File Offset: 0x00012110 public Guid ActivityId { get { return this.activity; } set { this.activity = value; } } /// Gets the logical operation stack from the call context. /// A object that represents the logical operation stack for the call context. /// 1 // Token: 0x170001C4 RID: 452 // (get) Token: 0x0600076F RID: 1903 RVA: 0x00013F1C File Offset: 0x0001211C public Stack LogicalOperationStack { get { return this.op_stack; } } /// Starts a logical operation on a thread. /// 1 // Token: 0x06000770 RID: 1904 RVA: 0x00013F24 File Offset: 0x00012124 public void StartLogicalOperation() { this.StartLogicalOperation(Guid.NewGuid()); } /// Starts a logical operation with the specified identity on a thread. /// An object identifying the operation. /// The parameter is null. /// 1 // Token: 0x06000771 RID: 1905 RVA: 0x00013F38 File Offset: 0x00012138 public void StartLogicalOperation(object operationId) { this.op_stack.Push(operationId); } /// Stops the current logical operation. /// The property is an empty stack. /// 1 // Token: 0x06000772 RID: 1906 RVA: 0x00013F48 File Offset: 0x00012148 public void StopLogicalOperation() { this.op_stack.Pop(); } // Token: 0x04000216 RID: 534 private Guid activity; // Token: 0x04000217 RID: 535 private Stack op_stack = new Stack(); } }