Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I have an issue with a HangfireTask, I cannot resolve IUmbracoHelper or IPublishedContentQuery.
IUmbracoHelper
IPublishedContentQuery
Exception "Wasn't able to get an UmbracoContext".
Tried IUmbracoHelperAccessor and IPublishedContentQueryAccessor but it returns null when TryGetValue.
IUmbracoHelperAccessor
IPublishedContentQueryAccessor
TryGetValue
I need to get the published content item and it's url.
Anyone have any ideas?
IUmbracoContextFactory returns a fake context for a HangfireTask and returns null when trying to find content by xpath.
IUmbracoContextFactory
Trying with a Umbraco Background task does the same thing. It's out of umbraco context somehow.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
UmbracoHelper/UmbracoContext/PublishedContentQuery in Service for a HangfireTask
Hi,
I have an issue with a HangfireTask, I cannot resolve
IUmbracoHelperorIPublishedContentQuery.Exception "Wasn't able to get an UmbracoContext".
Tried
IUmbracoHelperAccessorandIPublishedContentQueryAccessorbut it returns null whenTryGetValue.I need to get the published content item and it's url.
Anyone have any ideas?
IUmbracoContextFactoryreturns a fake context for a HangfireTask and returns null when trying to find content by xpath.Trying with a Umbraco Background task does the same thing. It's out of umbraco context somehow.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.