Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public class Client
{
private readonly ProductService _productService;
public Client()
{
_productService = new ProductService();
}
private string Call()
{
try
{
return _productService.GetSample().Result;
}
catch (AggregateException ex)
{
return ex.InnerException.GetType().FullName;
}
}
public void Test_5_Calls()
{
for (int i = 1; i <= 5; i++)
{
Console.WriteLine($"Call {i}: {Call()}");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.