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...
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.
Continue discussion
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...
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.