예제 #1
0
 /// <summary>
 /// Deliver the result value
 /// </summary>
 /// <param name="value"></param>
 protected void OnNextCore(object value)
 {
     DebugHelper.WriteLogEx("value = {0}.", 1, value);
     try
     {
         AsyncResultObjectEventArgs resultArgs = new AsyncResultObjectEventArgs(
             this.session, this.observable, value);
         this.OnNewResult(this, resultArgs);
     }
     catch (Exception ex)
     {
         this.OnError(ex);
         DebugHelper.WriteLogEx("{0}", 0, ex);
     }
 }
예제 #2
0
 protected void OnNextCore(object value)
 {
     object[] objArray = new object[1];
     objArray[0] = value;
     DebugHelper.WriteLogEx("value = {0}.", 1, objArray);
     try
     {
         AsyncResultObjectEventArgs asyncResultObjectEventArg = new AsyncResultObjectEventArgs(this.session, this.observable, value);
         this.OnNewResult(this, asyncResultObjectEventArg);
     }
     catch (Exception exception1)
     {
         Exception exception = exception1;
         this.OnError(exception);
         object[] objArray1 = new object[1];
         objArray1[0] = exception;
         DebugHelper.WriteLogEx("{0}", 0, objArray1);
     }
 }