/// <summary> /// <para> /// Operation completed with an error /// </para> /// </summary> /// <param name="error">error object</param> public virtual void OnError(Exception error) { try { AsyncResultErrorEventArgs errorArgs = new AsyncResultErrorEventArgs( this.session, this.observable, error, this.context); this.OnNewResult(this, errorArgs); } catch (Exception ex) { // !!ignore the exception DebugHelper.WriteLogEx("{0}", 0, ex); } }
public virtual void OnError(Exception error) { try { AsyncResultErrorEventArgs asyncResultErrorEventArg = new AsyncResultErrorEventArgs(this.session, this.observable, error, this.context); this.OnNewResult(this, asyncResultErrorEventArg); } catch (Exception exception1) { Exception exception = exception1; object[] objArray = new object[1]; objArray[0] = exception; DebugHelper.WriteLogEx("{0}", 0, objArray); } }