Hello Everyone,
I am new for Umbraco and try to create a schedule job that will take all published content from umbraco database culture wise and do some some processing.
Can anyone please help me in this.
Using UmbracoContextReference I am able to get content by id but not all childrens culture wise.
UmbracoContextReference umbracoContextReference = _contextFactory.EnsureUmbracoContext()
IPublishedContentCache contentCache = umbracoContextReference.UmbracoContext.Content;
IPublishedContent publishedContent = contentCache.GetById(new Guid(_configuration.GetValue<string>("Application:ProductMasterID")));
var allProducts = publishedContent.Children.Select(x => new ProductDetail(x, _publishedValueFallback)).ToList();
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/110238-how-to-get-published-content-in-recurringhostedservicebase