From 06e966ca6e0624369f9be6162337c4f7239ed682 Mon Sep 17 00:00:00 2001 From: Sakura Akeno Isayeki Date: Tue, 2 Jul 2024 18:34:06 +0200 Subject: [PATCH] feat: Add Microsoft.Extensions.Http.Resilience package This commit adds the `Microsoft.Extensions.Http.Resilience` package to the project. It also modifies the `Program.cs` file to include the `AddStandardResilienceHandler()` method call, which configures the HTTP client with a standard resilience handler. --- Nodsoft.Mirador.Functions/Nodsoft.Mirador.Functions.csproj | 1 + Nodsoft.Mirador.Functions/Program.cs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Nodsoft.Mirador.Functions/Nodsoft.Mirador.Functions.csproj b/Nodsoft.Mirador.Functions/Nodsoft.Mirador.Functions.csproj index d9aefdf..fb7eac5 100644 --- a/Nodsoft.Mirador.Functions/Nodsoft.Mirador.Functions.csproj +++ b/Nodsoft.Mirador.Functions/Nodsoft.Mirador.Functions.csproj @@ -20,6 +20,7 @@ + diff --git a/Nodsoft.Mirador.Functions/Program.cs b/Nodsoft.Mirador.Functions/Program.cs index 6d54b6c..39cba2e 100644 --- a/Nodsoft.Mirador.Functions/Program.cs +++ b/Nodsoft.Mirador.Functions/Program.cs @@ -44,7 +44,8 @@ .ConfigureHttpClient(client => { client.DefaultRequestHeaders.UserAgent.ParseAdd($"NSYS-Mirador/{miradorVersion} (+https://github.com/Nodsoft/Mirador; mailto:admin+mirador@nodsoft.net)"); - }); + }) + .AddStandardResilienceHandler(); }) .Build();