Esempio n. 1
0
        private void client_OnLogonError(object sender, IMsTscAxEvents_OnLogonErrorEvent e)
        {
            int    errorCode = e.lError;
            string message   = RdpClientErrorMessages.ToLogonMessage(errorCode);
            string finalMsg  = String.Format("There was a logon error returned from the RDP Connection, details:\n\nLogon Code:{0}\n\nLogon Description:{1}", errorCode, message);

            Logging.Error(finalMsg);
        }
Esempio n. 2
0
        private void client_OnLogonError(object sender, IMsTscAxEvents_OnLogonErrorEvent e)
        {
            int errorCode = e.lError;

            string message  = RdpClientErrorMessages.ToLogonMessage(errorCode);
            string finalMsg = string.Format("There was a logon error returned from the RDP connection.\nLogon code: {0}\nLogon description: {1}", errorCode, message);

            if (errorCode != -2)
            {
                Log.Error(finalMsg);
            }
            else
            {
                Log.Debug(finalMsg);
            }
        }