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
IApplicationEventHandler
and added Examine events toOnApplicationStarted
. I then delete theApp_Data
folder and restart the app. WhenOnApplicationStarted
fires all indexes have already been generated. My event handlers never execute. I've tried to add the event handlers toOnApplicationInitialized
andOnApplicationStarting
butExamineManager
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;
I'm refactoring an old app that runs v6.2.1
is working on a reply...