Exemple #1
0
 private static void OnResumeAsyncCodeActivityBookmark(IAsyncResult result)
 {
     if (!result.CompletedSynchronously)
     {
         ActivityExecutor asyncState = (ActivityExecutor)result.AsyncState;
         try
         {
             asyncState.EndResumeBookmark(result);
         }
         catch (Exception exception)
         {
             if (Fx.IsFatal(exception))
             {
                 throw;
             }
             asyncState.AbortWorkflowInstance(exception);
         }
     }
 }
Exemple #2
0
        private static void OnResumeAsyncCodeActivityBookmark(IAsyncResult result)
        {
            if (result.CompletedSynchronously)
            {
                return;
            }

            ActivityExecutor executor = (ActivityExecutor)result.AsyncState;

            try
            {
                executor.EndResumeBookmark(result);
            }
            catch (Exception e)
            {
                if (Fx.IsFatal(e))
                {
                    throw;
                }

                executor.AbortWorkflowInstance(e);
            }
        }