[RESOLVED] keep the previous time
My service constantly receives several different messages...
I would like to place a logic which checks if a prticular message is received within (A particular time interval) say 30 seconds of the previous one.
What is the best way to start this? where should I keep the previously received messagetime so that I can compare it to the new received time?...
Thanks
Re: keep the previous time
the simplest way I can think of is to use private (static?) DateTime member which holds the previous last time stamp, if this application supports multithreading then you'll have to use the lock statement.
Re: keep the previous time