Is it possible to add an event handler to react to when sessions are imported? I'd like the Fiddler extension I'm developing be able to react to imported sessions the same way it does for loading a Saz file.
Which points off to the ImportService class I made, keying off of this.session.isAnyFlagSet(SessionFlags.ImportedFromOtherTool) to validate the session needs to be worked on.
Maybe I just need a way to pick up EventHandler<ProgressCallbackEventArgs> _evtProgressNotifications;?
From: https://github.com/ericlaw1979/FiddlerImportNetlog/blob/master/FiddlerImportNetlog/Importer.cs
I have been able to code this out using:
FiddlerApplication.UI.lvSessions.OnSessionsAdded += ImportService.Instance.ImportSessions;
Which points off to the ImportService class I made, keying off of this.session.isAnyFlagSet(SessionFlags.ImportedFromOtherTool) to validate the session needs to be worked on.
Link over to https://feedback.telerik.com/fiddler/1657770-fiddler-classic-should-expose-onimportsessions-event which is connected to this. As Eric mentions, this is a little cumbersome right now. Having an OnImportSessions event would be the ideal solution.