Пример #1
0
 private LogicalOperation(object data, Guid activityId)
 {
     this.data = data;
     LogicalOperation.StartLogicalOperation(this.data);
     this.previousActivityId             = Trace.CorrelationManager.ActivityId;
     Trace.CorrelationManager.ActivityId = activityId;
 }
Пример #2
0
 private LogicalOperation(object data)
 {
     this.data = data;
     LogicalOperation.StartLogicalOperation(data);
     this.previousActivityId = Trace.CorrelationManager.ActivityId;
     if (Trace.CorrelationManager.ActivityId == Guid.Empty)
     {
         Trace.CorrelationManager.ActivityId = Guid.NewGuid();
     }
 }