I want to run a function just for specific time (say 10 min). After specific time it will return successful if it is able to execute the function successfully or unsuccessful.
The function does a large amount of data processing and updating the tables.
I want to stop executing that function after 10 min. If successful then its fine. If not i need to rollback the transaction which is after thought.
I am using asp.net with C#.
So is there any way i can stop execution of a function after specific time?
Any ideas would be really appreciated.
Thanks