Copied to clipboard

Flag this post as spam?

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


  • Jonas Eriksson 930 posts 1825 karma points
    May 17, 2011 @ 18:46
    Jonas Eriksson
    0

    :ApplicationBase Constructor does not run

    Been staring at this for a while without getting any further. Code that worked before (pre 4.7 at least) does not work anymore. What am I missing? Site is running fine otherwise.

    public class MyEvents : umbraco.BusinessLogic.ApplicationBase
    {
        public MyEvents()
        {
       Media.AfterSave += new Media.SaveEventHandler(Media_AfterSave);
        }

        void Media_AfterSave(umbraco.cms.businesslogic.media.Media sender, umbraco.cms.businesslogic.SaveEventArgs e)
        {
        Log.Add(LogTypes.Custom, 0, "Hello from event handler");
        }
    }

    Regards
    Jonas Eriksson

  • 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