Copied to clipboard

Flag this post as spam?

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


  • Edwin van Koppen 156 posts 270 karma points
    Jan 22, 2013 @ 12:28
    Edwin van Koppen
    0

    IApplicationEventHandler getting called two times?

    I got this:

    public class AppEvents : IApplicationEventHandler {
            public void OnApplicationInitialized(UmbracoApplication httpApplication, ApplicationContext applicationContext) {

            }
            public void OnApplicationStarting(UmbracoApplication httpApplication, ApplicationContext applicationContext) {
                Document.AfterPublish += DocumentEvents.Document_AfterPublish;
                Document.AfterSave += DocumentEvents.Document_AfterSave;
            }
            public void OnApplicationStarted(UmbracoApplication httpApplication, ApplicationContext applicationContext) {
            }

    }

    But it get called twice every time.. if i put a debugger on it, also two hits. Is this a bug? i use 4.11.2

Please Sign in or register to post replies

Write your reply to:

Draft