dotnet / aspire

An opinionated, cloud ready stack for building observable, production ready, distributed applications in .NET
https://learn.microsoft.com/dotnet/aspire
MIT License
2.98k stars 283 forks source link

Add code in test project templates to configure HttpClient resiliency #3981

Closed DamianEdwards closed 1 week ago

DamianEdwards commented 2 weeks ago

We should consider updating the Aspire integration test project templates to have code that adds HttpClient resiliency now that it was removed from DistributedApplicationTestBuilder, e.g.:

builder.Services.ConfigureHttpClientDefaults(clientBuilder =>
{
    clientBuilder.AddStandardResilienceHandler();
});