private void MabelError(object sender, MabelEventArgs e)
 {
     if (e.response != null)
     {
         OnError(new ErrorEventArgs(e.request.buildURL(), "url: " + e.request.buildURL() + ":" + e.response._raw));
     }
     else
     {
         OnError(new ErrorEventArgs(e.request.buildURL(), "url: " + e.request.buildURL() + ": no response"));
     }
 }
예제 #2
0
 // event handlers
 protected virtual void OnDebug(MabelEventArgs e)
 {
     Debug?.Invoke(this, e);
 }
예제 #3
0
 protected virtual void OnError(MabelEventArgs e)
 {
     Error?.Invoke(this, e);
 }
예제 #4
0
 // event handlers
 protected virtual void OnDebug(MabelEventArgs e)
 {
     Debug?.Invoke(this, e);
 }