/// <summary>
        ///   Called when an authentication failiure occurs.
        /// </summary>
        /// <param name = "sender">The sender.</param>
        /// <param name = "e">The <see cref = "XmppAuthenticationFailiureEventArgs" /> instance containing the event data.</param>
        protected virtual void OnAuthenticationError(object sender, XmppAuthenticationFailiureEventArgs e)
        {
            if (pendingMessages != null)
            {
                pendingMessages.Clear();
            }

            AuthenticationError  = e.Message;
            AuthenticationFailed = true;
        }
        protected override void OnAuthenticationError(object sender, XmppAuthenticationFailiureEventArgs e)
        {
            base.OnAuthenticationError(sender, e);

            waitEvent.Set();
        }
        protected override void OnAuthenticationError(object sender, XmppAuthenticationFailiureEventArgs e)
        {
            base.OnAuthenticationError(sender, e);

            waitEvent.Set();
        }
Example #4
0
        private void OnAuthenticationFailiure(object sender, XmppAuthenticationFailiureEventArgs e)
        {
            Close();

            if (AuthenticationFailed != null)
            {
                AuthenticationFailed(this, e);
            }
        }
Example #5
0
        /// <summary>
        ///   Called when an authentication failiure occurs.
        /// </summary>
        /// <param name = "sender">The sender.</param>
        /// <param name = "e">The <see cref = "XmppAuthenticationFailiureEventArgs" /> instance containing the event data.</param>
        protected virtual void OnAuthenticationError(object sender, XmppAuthenticationFailiureEventArgs e)
        {
            if (pendingMessages != null) {
                pendingMessages.Clear();
            }

            AuthenticationError = e.Message;
            AuthenticationFailed = true;
        }