Reading content once at app start - inside of UmbracoApplicationStartedNotification?
What I am trying to do is reading a specific content node after Umbraco started, and update application configuration with the obtained data. This needs to happen only once at app start.
For this, I try to use UmbracoApplicationStartedNotification. However, I am unable to obtain access to IPublishedContent inside of my notification code.
What I tried is injecting on of
IUmbracoContextAccessor
IUmbracoHelper
IPublishedCache
IPublishedContentCache
but I get exceptions that the service cannot be resolved.
How can I get access to IPublishedContent inside of UmbracoApplicationStartedNotification, or is there a better approach for my task?
Reading content once at app start - inside of UmbracoApplicationStartedNotification?
What I am trying to do is reading a specific content node after Umbraco started, and update application configuration with the obtained data. This needs to happen only once at app start.
For this, I try to use
UmbracoApplicationStartedNotification
. However, I am unable to obtain access to IPublishedContent inside of my notification code.What I tried is injecting on of
but I get exceptions that the service cannot be resolved.
How can I get access to IPublishedContent inside of
UmbracoApplicationStartedNotification
, or is there a better approach for my task?Kind regards, Mikael
is working on a reply...