Esempio n. 1
0
 public virtual void OnCompleted()
 {
     try
     {
         AsyncResultCompleteEventArgs asyncResultCompleteEventArg = new AsyncResultCompleteEventArgs(this.session, this.observable);
         this.OnNewResult(this, asyncResultCompleteEventArg);
     }
     catch (Exception exception1)
     {
         Exception exception = exception1;
         this.OnError(exception);
         object[] objArray = new object[1];
         objArray[0] = exception;
         DebugHelper.WriteLogEx("{0}", 0, objArray);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// <para>
 /// Operation completed successfully
 /// </para>
 /// </summary>
 public virtual void OnCompleted()
 {
     // callbacks should never throw any exception to
     // protocol layer, otherwise the client process will be
     // terminated because of unhandled exception, same with
     // OnNext, OnError
     try
     {
         AsyncResultCompleteEventArgs completeArgs = new AsyncResultCompleteEventArgs(
             this.session, this.observable);
         this.OnNewResult(this, completeArgs);
     }
     catch (Exception ex)
     {
         this.OnError(ex);
         DebugHelper.WriteLogEx("{0}", 0, ex);
     }
 }