Yeah, as far as I understand the UmbracoContext relies on HttpContext and is currently fairly tightly coupled to it.
The way I've gotten around this previously is to expose the data you want to be queried (or updated) via Umbraco API controllers - basically, as simple REST-like services. So you would call an API controller from your Quartz task to get back your data (as XML or JSON).
Query & Update Umbraco Data With HttpContext?
I'm working with Quartz.net tasks, and when a scheduled task is fired I'd like to be able to query some data and (maybe) update some content values.
However, unless I'm being stupid (Highly likely) I cannot query data unless the HttpContext is available?
I thought this would work.
But
is null (Just like HttpContext.Current).
Also, I'm guessing that the new Services won't work without the HttpContext?
Any help appreciated.
Yeah, as far as I understand the UmbracoContext relies on HttpContext and is currently fairly tightly coupled to it.
The way I've gotten around this previously is to expose the data you want to be queried (or updated) via Umbraco API controllers - basically, as simple REST-like services. So you would call an API controller from your Quartz task to get back your data (as XML or JSON).
is working on a reply...