Im using AutoResetEvent object to block a thread for 60 secs ,, but I would like to block it for 60 secs or AutoResetEvent.set() event
CODE :
global:
private readonly AutoResetEvent _signal = new AutoResetEvent(false);
blocking:
_signal.WaitOne(60000, true);
event to give signal
_signal.Set();
but it alwayas waits the whole 60 secs ! even if i released the signal .