I've implemented IApplicationEventHandler and added Examine events to OnApplicationStarted. I then delete the App_Data folder and restart the app. When OnApplicationStarted fires all indexes have already been generated. My event handlers never execute. I've tried to add the event handlers to OnApplicationInitialized and OnApplicationStarting but ExamineManager throws an exception.
Question: ho do I wire the event handlers sooner, before the indexing starts?
This is how I'm adding the event handler: ExamineManager.Instance.IndexProviderCollection["MyIndexer"].NodeIndexing += MyIndexingHandler;
Wire Examine events before indexing starts
I've implemented
IApplicationEventHandlerand added Examine events toOnApplicationStarted. I then delete theApp_Datafolder and restart the app. WhenOnApplicationStartedfires all indexes have already been generated. My event handlers never execute. I've tried to add the event handlers toOnApplicationInitializedandOnApplicationStartingbutExamineManagerthrows an exception.Question: ho do I wire the event handlers sooner, before the indexing starts?
This is how I'm adding the event handler:
ExamineManager.Instance.IndexProviderCollection["MyIndexer"].NodeIndexing += MyIndexingHandler;I'm refactoring an old app that runs v6.2.1
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.