private void HandleError(ITransport sender, int statusCode) { switch (statusCode) { case 401: Unauthorized?.Invoke(null, new EventArgs()); break; } }
protected virtual void OnUnauthorized(UnauthorizedResponse e) { Unauthorized?.Invoke(this, e); }
protected virtual void OnUnauthorized(HttpConnection p, string auth) { Unauthorized?.Invoke(this, p, auth); }
protected virtual void OnUnauthorized(UnauthorizedResponse e) { Logger.Info("OnUnauthorized"); Unauthorized?.Invoke(this, e); }