示例#1
0
        public void HandleError(ErrorMessage errorMessage)
        {
            bool authError = (errorMessage.Error == "unauthorized");

            if (authError)
            {
                AuthFailure?.Invoke(this, new NestAuthFailureEventArgs(new NestException(errorMessage.Message)));
            }
            else
            {
                Error?.Invoke(this, new NestErrorEventArgs(errorMessage));
            }
        }
 protected void RaiseAuthFailed(IClientInfo client)
 {
     AuthFailure?.Invoke(client);
 }