示例#1
0
 /// <summary>
 ///     Create a new NetMQTimer with the given timer-interval in milliseconds.
 /// </summary>
 /// <param name="interval">an integer specifying the timer-interval in milliseconds</param>
 /// <remarks>
 ///     This sets the When property to an initial value of -1, to indicate it no future-time applies as yet.
 /// </remarks>
 public NetMQTimer(int interval)
 {
     this.m_interval       = interval;
     this.m_timerEventArgs = new NetMQTimerEventArgs(this);
     this.m_enable         = true;
     this.When             = -1;
 }
示例#2
0
 private void PingElapsed(object sender, NetMQTimerEventArgs e)
 {
     this.SendUdpFrame(this.m_transmit);
 }