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

    Override Unpublish Event

    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 !

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies