예제 #1
0
        /// <summary>
        /// Sets the time when to re-enable showing Twitter updates
        /// </summary>
        private void InitTwitterSuspend()
        {
            // Immdiately clear all queued tweets
            _twitter.ClearStatusQueue();

            double suspendTime = 0;

            double.TryParse(CommonFunctions.GetSetting("Service_Twitter_SuspendTime"), out suspendTime);

            _twitterSuspendTime = DateTime.Now.AddMinutes(suspendTime);
        }