This is a migrated thread and some comments may be shown as answers.

Possible to extend the Load Archive?

2 Answers 57 Views
Extensions and Customization
This is a migrated thread and some comments may be shown as answers.
christian
Top achievements
Rank 1
christian asked on 19 Mar 2019, 02:41 PM

My use case is a User will send me a SAZ file and I will load the archive into fiddler to analyse it.

I would like to process each session as it is being imported so I can do some logic and color the sessions that are interesting to me. From doco I can only see ISessionImporter which doesn't seem to be used for SAZ files. Is it possible to implement what i described and what class i would need to extend?

2 Answers, 1 is accepted

Sort by
0
Simeon
Telerik team
answered on 26 Mar 2019, 03:16 PM
Hi Christian,

Thank you for asking. Here is an example showing how to do this:
public static void OnBoot()
{
    FiddlerApplication.OnLoadSAZ += OnLoadSAZHandler;
}
 
public static void OnLoadSAZHandler(object sender, FiddlerApplication.ReadSAZEventArgs ea)
{
    foreach (Session session in ea.arrSessions)
    {
        if (session.responseCode == 200)
        {
            session["ui-backcolor"] = "green";
            session.RefreshUI();
        }
    }
}


Regards,
Simeon
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
christian
Top achievements
Rank 1
answered on 26 Mar 2019, 04:35 PM
Thanks works a treat! although with OnLoad() for .net
Tags
Extensions and Customization
Asked by
christian
Top achievements
Rank 1
Answers by
Simeon
Telerik team
christian
Top achievements
Rank 1
Share this question
or