I have an issue where I am creating a Quartz.NET job (using a copy of Quartz.NET that is embedded in the web application my team is developing, if it matters) that sends an e-mail to certain people containing a hyperlink to a controller/action method that is part of the same application.
To generate this link, I know that some hard coding is unavoidable (due to the lack of there being an actual session created), but I want to use as little hard coding as possible so that it at least has some leeway for change in the event my team eventually wants to reorganize the app architecture. Thankfully, I was able to find a way to manually create a UrlHelper object for the Quartz job to use (see Call UrlHelper in models in ASP.NET MVC).
My issues is that I need some way to manually set the application virtual path stored in the HttpRequest object. This is because the web app is not located at the root of the website we are using.
Do you guys know of any way I can do this? I've tried searching on Google on how to set/change the HttpRequest.ApplicationPath property, or on where the data for that property comes from, but nothing relevant came up.