protected override void OnUnhandledMessage(object sender, XmppUnhandledMessageEventArgs e)
 {
     if (e.StanzaInstance is Success)
     {
         waitEvent.Set();
     }
 }
 protected override void OnUnhandledMessage(object sender, XmppUnhandledMessageEventArgs e)
 {
     if (e.StanzaInstance is Success)
     {
         waitEvent.Set();
     }
 }
Esempio n. 3
0
 protected override void OnUnhandledMessage(object sender, XmppUnhandledMessageEventArgs e)
 {
     if (e.StanzaInstance is Challenge)
     {
         // Response to teh Authentication Information Request
         digestChallenge = DecodeDigestChallenge((Challenge)e.StanzaInstance);
         successEvent.Set();
     }
     else if (e.StanzaInstance is Success)
     {
         successEvent.Set();
     }
 }
Esempio n. 4
0
        /// <summary>
        /// Called when an unhandled message is received
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="T:Framework.Net.Xmpp.Core.XmppUnhandledMessageEventArgs"/> instance containing the event data.</param>
        protected override void OnUnhandledMessage(object sender, XmppUnhandledMessageEventArgs e)
        {
            if (e.StanzaInstance is IQ)
            {
                IQ response = (IQ)e.StanzaInstance;

                if (this.PendingMessages.Contains(response.ID))
                {
                    this.PendingMessages.Remove(response.ID);

                    if (this.authInfo == null)
                    {
                        // Response to teh Authentication Information Request
                        this.authInfo = (JabberAuthQuery)response.Items[0];
                        this.authInfoEvent.Set();
                    }
                }
            }
        }
 /// <summary>
 ///   Called when an unhandled message is received
 /// </summary>
 /// <param name = "sender">The sender.</param>
 /// <param name = "e">The <see cref = "T:Hanoi.XmppUnhandledMessageEventArgs" /> instance containing the event data.</param>
 protected abstract void OnUnhandledMessage(object sender, XmppUnhandledMessageEventArgs e);
Esempio n. 6
0
 /// <summary>
 ///   Called when an unhandled message is received
 /// </summary>
 /// <param name = "sender">The sender.</param>
 /// <param name = "e">The <see cref = "T:Hanoi.XmppUnhandledMessageEventArgs" /> instance containing the event data.</param>
 protected abstract void OnUnhandledMessage(object sender, XmppUnhandledMessageEventArgs e);
 protected override void OnUnhandledMessage(object sender, XmppUnhandledMessageEventArgs e)
 {
     if (e.StanzaInstance is Challenge)
     {
         // Response to teh Authentication Information Request
         digestChallenge = DecodeDigestChallenge((Challenge)e.StanzaInstance);
         successEvent.Set();
     }
     else if (e.StanzaInstance is Success)
     {
         successEvent.Set();
     }
 }
        /// <summary>
        /// Called when an unhandled message is received
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="T:Framework.Net.Xmpp.Core.XmppUnhandledMessageEventArgs"/> instance containing the event data.</param>
        protected override void OnUnhandledMessage(object sender, XmppUnhandledMessageEventArgs e)
        {
            if (e.StanzaInstance is IQ)
            {
                IQ response = (IQ)e.StanzaInstance;

                if (this.PendingMessages.Contains(response.ID))
                {
                    this.PendingMessages.Remove(response.ID);

                    if (this.authInfo == null)
                    {
                        // Response to teh Authentication Information Request
                        this.authInfo = (JabberAuthQuery)response.Items[0];
                        this.authInfoEvent.Set();
                    }
                }
            }
        }