private void InitializeActivityId()
 {
     try
     {
         this.ActivityId = LogEntryContext.GetActivityId();
     }
     catch (Exception)
     {
         this.ActivityId = Guid.Empty;
     }
 }
Example #2
0
 private void InitializeActivityId()
 {
     if (Tracer.IsTracingAvailable())
     {
         try
         {
             this.ActivityId = LogEntryContext.GetActivityId();
         }
         catch (Exception)
         {
             this.ActivityId = Guid.Empty;
         }
     }
     else
     {
         this.ActivityId = Guid.Empty;
     }
 }