Copied to clipboard

Flag this post as spam?

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


  • Marcio Goularte 356 posts 1248 karma points
    Nov 03, 2016 @ 17:09
    Marcio Goularte
    0

    Order of execution the ContentService methods in more than one ApplicationEventHandler

    My scenario:

    I have a document type call CommonPage.

    Implement the ContentService.Saving method in an Event handler called CommonPageEventHandler (ApplicationEventHandler).

    I created a document type called News that inherits the Common Page.

    Implement the ContentService.Saving method in an Event handler called NewsEventHandler (ApplicationEventHandler). It is a class library separate from the CommonPageEventHandler, then a separate dll.

    How do I know which executes first?

    The two have an implementation ContentService.Saving. But need the CommonPageEventHandler run first.

    As the Umbraco understands which to run first? It is to say to the Umbraco which to run first?

    These links do not say anything about the execution order when you have more than one EventHandler with implementation Content Events.

    https://our.umbraco.org/documentation/getting-started/Code/Subscribing-To-Events/

    https://our.umbraco.org/documentation/Reference/Events/Application-Startup

  • Marcio Goularte 356 posts 1248 karma points
    Nov 09, 2016 @ 15:57
    Marcio Goularte
    0

    Anyone???

  • 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