ServiceConnect.Filters.MessageDeduplication.Filters.OutgoingFilter.TimerElapsed C# (CSharp) Method

TimerElapsed() static private method

Executes on every specified time interval and removes the expired message ids from the relevant persistance store.
static private TimerElapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void
sender object
e System.Timers.ElapsedEventArgs
return void
        static void TimerElapsed(object sender, ElapsedEventArgs e)
        {
            try
            {
                _messageDeduplicationPersistor.RemoveExpiredMessages(DateTime.UtcNow);
            }
            catch (Exception ex)
            {
                Logger.Error("Error removing expired messages.", ex);
            }
        }