private void CheckCancelled() { try { _checkCancelledAction(); } catch { ChorusSession.Abort(); throw; } }
public void HandleException(Exception exception) { var webException = exception as WebException; if (null != webException) { exception = ChorusSession.WrapWebException(webException); } lock (LockObj) { if (null != _exception) { return; } _exception = exception; ChorusSession.Abort(); Monitor.PulseAll(LockObj); } }
public void Dispose() { _chorusSession.Abort(); }