コード例 #1
0
        /// <summary>
        /// Deletes expired messages from the database.
        /// </summary>
        public static void DeleteExpiredMessages()
        {
            long currentTimeMillis = Util.CurrentTimeMillis();
            List <SignalMessage> expiredMessages = SignalDBContext.GetExpiredMessages(currentTimeMillis);

            foreach (var expiredMessage in expiredMessages)
            {
                DeleteFromDb(expiredMessage);
            }
        }