void OnLogCancel(object sender, SvnCancelEventArgs e) { if (_cancel) { e.Cancel = true; } }
volatile bool _canceling; // Updated from UI thread, read from command thread void OnClientCancel(object sender, SvnCancelEventArgs e) { if (_canceling) { e.Cancel = true; } }
static IntPtr _libsvnsharp_cancel_func(IntPtr cancelBaton) { var client = AprBaton <SvnClientContext> .Get(cancelBaton); SvnCancelEventArgs ea = new SvnCancelEventArgs(); try { client.HandleClientCancel(ea); if (ea.Cancel) { return(svn_error.svn_error_create( (int)SvnErrorCode.SVN_ERR_CANCELLED, null, "Operation canceled from OnCancel").__Instance); } return(IntPtr.Zero); } catch (Exception e) { return(SvnException.CreateExceptionSvnError("Cancel function", e).__Instance); } finally { ea.Detach(false); } }
void client_Cancel(object sender, SvnCancelEventArgs e) { if (this.cancel_operation) { e.Cancel = true; } }
void OnCancel(object sender, SvnCancelEventArgs e) { // BH: This method relies on the knowledge that the dialog hooks Cancel before us. if (e.Cancel) { _mergeActions = null; _resolvedMergeConflicts = null; } }
private void client_Cancel(object sender, SvnCancelEventArgs e) { try { e.Cancel = this._cancelCheckout; if (e.Cancel) { backgroundWorkerCheckOut.CancelAsync(); } } catch (Exception) { } }
private void client_Cancel(object sender, SvnCancelEventArgs e) { e.Cancel = _cancel; }
/// <summary> /// 被取消 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SC_Cancel(object sender, SvnCancelEventArgs e) { e.Cancel = Cancel; }
void OnClientCancel(object sender, SvnCancelEventArgs e) { if (_canceling) e.Cancel = true; }
void client_Cancel(object sender, SvnCancelEventArgs e) { e.Cancel = cancel; }
private void ClientOnCancel(object sender, SvnCancelEventArgs svnCancelEventArgs) { svnCancelEventArgs.Cancel = true; }
void _SvnClient_Cancel(object sender, SvnCancelEventArgs e) { e.Cancel = _CTS.Token.IsCancellationRequested; }