I got a condition, were I have listener which listens for a event.
Trying to do something like below, event handler may receive multiple events, however i need to merge them in one and trigger once.
private static void QueueRequestChanged()
{
// This may get 1 or 10 events here.
// want to keep wait for 10 seconds.
// trigger one event to handle it further
}
I am trying to do this, to avoid dead lock situation. Any suggestion on approach will help.
Thank you.