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

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

            if (this.AuthenticationFailed != null)
            {
                this.AuthenticationFailed(this, e);
            }
        }
示例#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;
        }