Copied to clipboard

Flag this post as spam?

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


  • David Armitage 510 posts 2081 karma points
    Jun 06, 2021 @ 09:14
    David Armitage
    0

    Umbraco 9 Events - How to create a published events

    Hi All,

    Has anyone got up and running with Events in Umbraco 9 yet. I read somewhere that these may have changes quite a lot.

    Has any of the Umbraco 9 team got any code examples how to create basic events?

    I am looking for the equivilant how how we used to do it for Umbraco 8

    public void Initialize()
    {
        ContentService.Published += ContentService_Published;
    }
    
    public void Terminate()
    {
    
    }
    
    private void ContentService_Published(IContentService sender, ContentPublishedEventArgs args)
    {
    
    }
    

    Kind Regards

    David

  • Andy Butland 422 posts 2334 karma points MVP 4x hq c-trib
    Jun 06, 2021 @ 09:17
    Andy Butland
    100

    Hi David - there's some documentation on this published here.

    Andy

  • David Armitage 510 posts 2081 karma points
    Jun 06, 2021 @ 09:21
    David Armitage
    0

    That is Umbraco 9 right? Its just logged under the V8 dropdown.

    Saying that though it doesn't look like Umbraco 8 code.

  • Andy Butland 422 posts 2334 karma points MVP 4x hq c-trib
    Jun 06, 2021 @ 09:45
    Andy Butland
    0

    It's Umbraco 9 yes, looks like the drop-down list for the version isn't populated yet with "V9".

Please Sign in or register to post replies

Write your reply to:

Draft