Ejemplo n.º 1
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;
        }
        protected override void OnAuthenticationError(object sender, XmppAuthenticationFailiureEventArgs e)
        {
            base.OnAuthenticationError(sender, e);

            waitEvent.Set();
        }
Ejemplo n.º 3
0
        protected override void OnAuthenticationError(object sender, XmppAuthenticationFailiureEventArgs e)
        {
            base.OnAuthenticationError(sender, e);

            waitEvent.Set();
        }
Ejemplo n.º 4
0
        private void OnAuthenticationFailiure(object sender, XmppAuthenticationFailiureEventArgs e)
        {
            Close();

            if (AuthenticationFailed != null)
            {
                AuthenticationFailed(this, e);
            }
        }
Ejemplo n.º 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;
        }