Exemple #1
0
        /// <summary>
        /// Creates a timer to perform scheduled updates for the specified
        /// profile.
        /// </summary>
        /// <param name="profile">The specified profile.</param>
        /// <returns>The created timer.</returns>
        private Timer CreateTimer(DynamicDnsProfile profile)
        {
            var timer = new Timer();

            timer.Tick    += this.OnTimerTick;
            timer.Interval = profile.GetUpdateIntervalInMilliseconds();
            timer.Start();
            timer.Tag = profile.Id;
            return(timer);
        }