Copied to clipboard

Flag this post as spam?

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


  • Marie 14 posts 36 karma points
    Jun 07, 2012 @ 12:37
    Marie
    0

    Extending Courier 2.6 - Custom Event

    I am trying to subscribe to an extraction event with Courier 2.6 (but the only documentation I can find is for 2.5). I have a class that inherits from ApplicationBase and I am trying to find the equivalent to the following line in the 2.5 documentation (which is obsolete in 2.6)

    var engine = Umbraco.Courier.Core.ExtractionManager.Instance;
    engine.Extracted += new EventHandler<ItemEventArgs>(engine_Extracted);

    In version 2.6 I am looking at something like:

    var engine = new Umbraco.Courier.Core.Extraction.RevisionExtraction(revision);
    engine.Extracted += new EventHandler<ExtractionEventArgs>(engine_Extracted);

    but I can't work out how I get a handle on the revision to pass to this method.

    Any help appreciated, thanks in advance.

Please Sign in or register to post replies

Write your reply to:

Draft