Ejemplo n.º 1
0
 private void HandleError(ITransport sender, int statusCode)
 {
     switch (statusCode)
     {
     case 401: Unauthorized?.Invoke(null, new EventArgs()); break;
     }
 }
Ejemplo n.º 2
0
 protected virtual void OnUnauthorized(UnauthorizedResponse e)
 {
     Unauthorized?.Invoke(this, e);
 }
Ejemplo n.º 3
0
 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);
 }