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

            this.successEvent.Set();
        }
Esempio n. 2
0
        private void OnAuthenticationFailiure(object sender, XmppAuthenticationFailiureEventArgs e)
        {
            this.Close();

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

            this.authenticationError    = e.Message;
            this.authenticationFailed   = true;
        }