Пример #1
0
 void ProcessFinalizationTraces()
 {
     try
     {
         if (this.propagateActivity)
         {
             Guid oldId = InternalReceiveMessage.TraceCorrelationActivityId;
             if (TD.StopSignpostEventIsEnabled())
             {
                 TD.StopSignpostEvent(new DictionaryTraceRecord(new Dictionary <string, string>(2)
                 {
                     { MessagingActivityHelper.ActivityName, MessagingActivityHelper.ActivityNameWorkflowOperationInvoke },
                     { MessagingActivityHelper.ActivityType, MessagingActivityHelper.ActivityTypeExecuteUserCode }
                 }));
             }
             FxTrace.Trace.SetAndTraceTransfer(this.ambientActivityId, true);
             this.ambientActivityId = Guid.Empty;
         }
     }
     catch (Exception ex)
     {
         if (Fx.IsFatal(ex))
         {
             throw;
         }
         FxTrace.Exception.AsInformation(ex);
     }
     DecrementBusyCount();
 }