コード例 #1
0
        protected override void OnAuthenticationError(object sender, XmppAuthenticationFailiureEventArgs e)
        {
            base.OnAuthenticationError(sender, e);

            this.successEvent.Set();
        }
コード例 #2
0
ファイル: XmppSession.cs プロジェクト: eightrivers/babelim
        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;
        }