Exemplo n.º 1
0
 public void StartSynchronous(AsyncTaskResultPostedEventHandler handler)
 {
     this._resultPostedHandler = handler;
     this._isBusy = true;
     try
     {
         this.InvokePerformTask();
     }
     catch (Exception)
     {
     }
     finally
     {
         this._isBusy = false;
     }
 }
Exemplo n.º 2
0
 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;
     }
 }
Exemplo n.º 3
0
 /// <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;
     }
 }
Exemplo n.º 4
0
 /// <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;
     }
 }