agsXMPP.XmppConnection.CreateKeepAliveTimer C# (CSharp) Method

CreateKeepAliveTimer() protected method

protected CreateKeepAliveTimer ( ) : void
return void
        protected void CreateKeepAliveTimer()
        {
            // Create the delegate that invokes methods for the timer.
            TimerCallback timerDelegate = new TimerCallback(KeepAliveTick);
            int interval = m_KeepAliveInterval * 1000;
            // Create a timer that waits x seconds, then invokes every x seconds.
            m_KeepaliveTimer = new Timer(timerDelegate, null, interval, interval);
        }