Copied to clipboard

Flag this post as spam?

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


  • Marek 4 posts 84 karma points
    Apr 25, 2019 @ 07:03
    Marek
    0

    Wire Examine events before indexing starts

    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;

    I'm refactoring an old app that runs v6.2.1

Please Sign in or register to post replies

Write your reply to:

Draft