Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Developer 22 posts 123 karma points
    Oct 12, 2018 @ 12:22
    Developer
    0

    Hey,

    I am using Umbraco 7.8.1. I need to develop our custom code that get execute when Unpublish occur using the Scheduled publish.

    I have created delegate that is being called at automatic Publish event as below :

        ContentService.Saved += delegate (IContentService sender, SaveEventArgs<IContent> args)
                {
    }
    

    I also have created delegate for Unpublish as below but it doesn't get executed at the time of Unpublish

            ContentService.UnPublished += delegate (IPublishingStrategy sender, PublishEventArgs<IContent> args)
                {
    }
    

    What is going wrong here? Any help will be appreciated !

Please Sign in or register to post replies

Write your reply to:

Draft