I follow the article "Simulate a Windows Service using ASP.NET to run scheduled jobs" on CodeProject, and in the part "Store item in cache again upon expire" I need to hit a page of my application.
Instead of hard writing the url, I wanted to generate it with the Asp.Net MVC UrlHelper but it seams that it required some instances that I don't have access in this context, because it's not in a Controller or a View.
Is it possible or is there another solution?
EDIT:
Sadly HttpContext.Current is not accessible in CacheItemRemovedCallBack. So the only solution appears to store the value needed (Url.Host) in the Application_Start method in order to build the full url later.