we have long running tasks on our roles , need sure stop them ima controlled way. tried use on stop method msdn says
important code running in onstop method has limited time finish when called reasons other user-initiated shutdown. after time elapses, process terminated, must make sure code in onstop method can run or tolerates not running completion. onstop method called after stopping event raised.
and timeout seems around 30 seconds , overall shutdown procedure should take no more 5 minutes.
does limitation occurs on stopping event? can't find clear , direct answer anywhere.
thanks