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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
UmbracoHelper/UmbracoContext/PublishedContentQuery in Service for a HangfireTask
Hi,
I have an issue with a HangfireTask, I cannot resolve
IUmbracoHelper
orIPublishedContentQuery
.Exception "Wasn't able to get an UmbracoContext".
Tried
IUmbracoHelperAccessor
andIPublishedContentQueryAccessor
but it returns null whenTryGetValue
.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.Trying with a Umbraco Background task does the same thing. It's out of umbraco context somehow.
is working on a reply...