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")); } }
// event handlers protected virtual void OnDebug(MabelEventArgs e) { Debug?.Invoke(this, e); }
protected virtual void OnError(MabelEventArgs e) { Error?.Invoke(this, e); }