Esempio n. 1
0
 private void completionMethod(object data, Exception ex, bool cancelled, AsyncOperation asyncOp)
 {
     if (!cancelled) {
         lock (userStateToLifetime) {
             userStateToLifetime.Remove(asyncOp.UserSuppliedState);
         }
         var e = new OperationCompletedEventArgs(data, ex, cancelled, asyncOp.UserSuppliedState);
         asyncOp.PostOperationCompleted(onCompletedCallback, e);
     }
 }
Esempio n. 2
0
 protected void onOperationCompleted(OperationCompletedEventArgs e)
 {
     if (this.DataCommitCompleted != null)
         DataCommitCompleted(this, e);
 }