I’m running a C# program (console application, soon to be converted to a Windows Service) where I need to be able to email administrators about errors in the service, but I need it to not send our an email for every error if the number of errors in the last few minutes exceeds 4-5, so it’ll only send one email saying there are multiple errors.
I understand I’d use a timer in someform, but can anyone offer any more specific advice? I’d be very grateful
Modified from MSDN. Note comments about declaration and cleanup of
TimerobjectaTimer.