Log HttpClient requests to fiddler`s SAZ format.
static async Task ShortExample()
{
using (var logger = new FiddlerLogger(new HttpClientHandler(), "logfileName.saz"))
{
var client = new HttpClient(logger);
await client.GetAsync("example.com");
}
}
Notice that FiddlerLogger object should be disposed or Saved() in order to actually save logs in file.