Пример #1
0
 static Boolean CatchWorkflow(AppWorkflow aw, Exception ex)
 {
     if ((aw != null) && (aw._application != null))
     {
         String msg = ex.Message;
         if (ex.InnerException != null)
         {
             msg = ex.InnerException.Message;
         }
         aw.Track(new CustomTrackingRecord(aw._application.Id, msg, TraceLevel.Error));
         aw._application.Unload();
     }
     if (ex.InnerException != null)
     {
         throw ex.InnerException;
     }
     else
     {
         return(false);
     }
 }
Пример #2
0
 protected override void Track(TrackingRecord record, TimeSpan timeout)
 {
     _workflow.Track(record);
 }