/// <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); } }