I’m writing an ASP.NET application. When a specific kind of request is being handled, I want to schedule a method to be called in a certain number of minutes after the request is handled. The postponed method does not need to communicate with the client that made the original request, it is just intended to do some ‘housekeeping’ work. What is the best way to do this in an ASP.NET context? (It’s ok to not fire the event if the application domain dies for some reason).
I’m writing an ASP.NET application. When a specific kind of request is being handled,
Share
In Global.asax use this to check your incoming request:
if your request is valid, register a cache entry:
then process your function in the callback: