ContentService.Unpublish listener does not pick up on scheduled unpublish
I am using Umbraco v 7.7.9. I have a class that listens for the unpublished event firing and performs some actions when it does. It works perfectly when content nodes are manually unpublished however, when I set content for scheduled unpublish it is not picked up. Here's my code:
protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
{
// Hook on to the content node unpublish event firing
ContentService.UnPublished += ContentServiceUnPublished;
}
private void ContentServiceUnPublished(IPublishingStrategy sender, PublishEventArgs<IContent> args)
{
// Do something
}
Should this be the case? And if it is, is there something else I can do to pick up scheduled unpublish?
ContentService.Unpublish listener does not pick up on scheduled unpublish
I am using Umbraco v 7.7.9. I have a class that listens for the unpublished event firing and performs some actions when it does. It works perfectly when content nodes are manually unpublished however, when I set content for scheduled unpublish it is not picked up. Here's my code:
Should this be the case? And if it is, is there something else I can do to pick up scheduled unpublish?
Thank you in advance.
Hi James,
Can you try to reproduce this on the latest version of Umbraco.
If so you can create a issue on http://issues.umbraco.org
Hi Dave,
No problem, I'll try that tonight thanks.
is working on a reply...