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(); }
private void OnFaulted(NativeActivityFaultContext context, Exception exception, ActivityInstance source) { if (rEngine != null) { this.RDispose(); } context.CancelChildren(); }
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; } }
private void OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom) { faultContext.CancelChildren(); Cleanup(); }
private void OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom) { sftp_Session_Var.Disconnect(); faultContext.CancelChildren(); Cleanup(); }