Exemple #1
0
 protected void BodyFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
 {
     this.DisposeMonitor(faultContext);
     this.HandleException(propagatedException, this.ContinueOnError.Get(faultContext));
     faultContext.CancelChildren();
     faultContext.HandleFault();
 }
 private void onWorkItemFaulted(NativeActivityFaultContext faultcontext,
                                Exception propagatedexception, ActivityInstance propagatedfrom)
 {
     faultcontext.HandleFault();
     faultcontext.CancelChildren();
     _childFault.Set(faultcontext, propagatedexception);
 }
        private void OnFaultedCallback(NativeActivityFaultContext faultContext, Exception exception, ActivityInstance source)
        {
            faultContext.CancelChildren();
            DatabaseConnection conn = DBConnection.Get(faultContext);

            if (conn != null)
            {
                try
                {
                    if (UseTransaction)
                    {
                        conn.Rollback();
                    }
                }
                catch (Exception ex)
                {
                    throw ex;
                }
                finally
                {
                    conn.Dispose();
                }
            }

            HandleException(exception, ContinueOnError.Get(faultContext));
            faultContext.HandleFault();
        }
Exemple #4
0
 private void OnFaulted(NativeActivityFaultContext context, Exception exception, ActivityInstance source)
 {
     if (rEngine != null)
     {
         this.RDispose();
     }
     context.CancelChildren();
 }
Exemple #5
0
        private void BodyFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
        {
            if (ContinueOnError.Get(faultContext))
            {
                // Cancel all remaining actions for the current event.
                faultContext.CancelChildren();

                // ... but continue monitoring and triggering new events.
                faultContext.HandleFault();

                Trace.TraceError(propagatedException.ToString());
            }
            else
            {
                CleanUp(faultContext);
                throw propagatedException;
            }
        }
Exemple #6
0
 private void OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
 {
     faultContext.CancelChildren();
     Cleanup();
 }
Exemple #7
0
 private void OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
 {
     sftp_Session_Var.Disconnect();
     faultContext.CancelChildren();
     Cleanup();
 }