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