protected override void OnAuthenticationError(object sender, XmppAuthenticationFailiureEventArgs e) { base.OnAuthenticationError(sender, e); this.successEvent.Set(); }
private void OnAuthenticationFailiure(object sender, XmppAuthenticationFailiureEventArgs e) { this.Close(); if (this.AuthenticationFailed != null) { this.AuthenticationFailed(this, e); } }
/// <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; }