public void StartSynchronous(AsyncTaskResultPostedEventHandler handler) { this._resultPostedHandler = handler; this._isBusy = true; try { this.InvokePerformTask(); } catch (Exception) { } finally { this._isBusy = false; } }
public void Start(AsyncTaskResultPostedEventHandler handler) { this._resultPostedHandler = handler; this._isBusy = true; try { new MethodInvoker(this.InvokePerformTask).BeginInvoke(null, null); } catch (Exception) { } finally { this._isBusy = false; } }
/// <summary> /// </summary> /// <param name="handler"></param> public void StartSynchronous(AsyncTaskResultPostedEventHandler handler) { _resultPostedHandler = handler; _isBusy = true; try { InvokePerformTask(); } catch (Exception e) { Debug.Fail(e.ToString()); } finally { _isBusy = false; } }
/// <summary> /// </summary> /// <param name="handler"></param> public void Start(AsyncTaskResultPostedEventHandler handler) { _resultPostedHandler = handler; _isBusy = true; try { MethodInvoker mi = new MethodInvoker(this.InvokePerformTask); mi.BeginInvoke(null, null); } catch (Exception e) { Debug.Fail(e.ToString()); } finally { _isBusy = false; } }