Example #1
0
        private bool ProcessErrorCode(int code)
        {
            if (code == 0)
            {
                return(true);
            }

            SendOutError(OMErrors.OMgetErrorDesc(code));
            return(false);
        }
Example #2
0
 private void SessionHolderOnPasswordChange(PasswordChangeInfo info)
 {
     try
     {
         SendOutMessage(new ChangePasswordMessage
         {
             Error = info.RpCode == 0 ? null : new InvalidOperationException(OMErrors.OMgetErrorDesc(info.RpCode))
         });
     }
     catch (Exception ex)
     {
         SendOutError(ex);
     }
 }