Provides data for the CtcpClient.PingResponseReceived event.
Inheritance: CtcpResponseReceivedEventArgs
Beispiel #1
0
        /// <summary>
        /// Raises the <see cref="PingResponseReceived"/> event.
        /// </summary>
        /// <param name="e">The <see cref="CtcpPingResponseReceivedEventArgs"/> instance containing the event data.
        /// </param>
        protected virtual void OnPingResponseReceived(CtcpPingResponseReceivedEventArgs e)
        {
            var handler = this.PingResponseReceived;

            if (handler != null)
            {
                handler(this, e);
            }
        }
 /// <summary>
 /// Raises the <see cref="PingResponseReceived"/> event.
 /// </summary>
 /// <param name="e">The <see cref="CtcpPingResponseReceivedEventArgs"/> instance containing the event data.
 /// </param>
 protected virtual void OnPingResponseReceived(CtcpPingResponseReceivedEventArgs e)
 {
     var handler = this.PingResponseReceived;
     if (handler != null)
         handler(this, e);
 }
        private static void ctcpClient1_PingResponseReceived(object sender, CtcpPingResponseReceivedEventArgs e)
        {
            if (e.User.NickName == ircClient2.LocalUser.NickName)
                client2PingTime = e.PingTime;

            if (ctcpClient1PingResponseReceivedEvent != null)
                ctcpClient1PingResponseReceivedEvent.Set();
        }
 private static void ctcpClient2_PingResponseReceived(object sender, CtcpPingResponseReceivedEventArgs e)
 {
     if (ctcpClient2PingResponseReceivedEvent != null)
         ctcpClient2PingResponseReceivedEvent.Set();
 }
Beispiel #5
0
        public void ctcpClient_PingResponseReceived(object sender, CtcpPingResponseReceivedEventArgs e)
        {
            if (e.User.NickName == thisclient.LocalUser.NickName)
                clientPingTime = e.PingTime;

            if (ctcpClientPingResponseReceivedEvent != null)
                ctcpClientPingResponseReceivedEvent.Set();
        }