public void Cancel(bool NeedNotify = true) { int hResult = XfsApi.WFSCancelAsyncRequest(hService, requestID); if (hResult != XFSDefinition.WFS_SUCCESS && CancelError != null && NeedNotify) { CancelError.Invoke(serviceType, hResult); } else { if (CancelComplete != null && NeedNotify) { CancelComplete.Invoke(serviceType); } } }
private void OnCancelComplete(CancelCompleteEventArgs e) { CancelComplete?.Invoke(this, e); }