Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
is working on a reply...