Upgrade Polly to version 8.3.0 (#4922)

This commit is contained in:
martintmk 2024-02-05 22:04:52 +01:00 коммит произвёл GitHub
Родитель 31f4d22bda
Коммит 80abb8ddf7
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
3 изменённых файлов: 12 добавлений и 6 удалений

Просмотреть файл

@ -37,10 +37,10 @@
<PackageVersion Include="Microsoft.Extensions.Primitives" Version="$(MicrosoftExtensionsPrimitivesVersion)" />
<PackageVersion Include="Microsoft.IO.RecyclableMemoryStream" Version="2.3.2" />
<PackageVersion Include="Newtonsoft.Json" Version="13.0.1" />
<PackageVersion Include="Polly" Version="8.2.1" />
<PackageVersion Include="Polly.Core" Version="8.2.1" />
<PackageVersion Include="Polly.Extensions" Version="8.2.1" />
<PackageVersion Include="Polly.RateLimiting" Version="8.2.1" />
<PackageVersion Include="Polly" Version="8.3.0" />
<PackageVersion Include="Polly.Core" Version="8.3.0" />
<PackageVersion Include="Polly.Extensions" Version="8.3.0" />
<PackageVersion Include="Polly.RateLimiting" Version="8.3.0" />
<PackageVersion Include="System.Buffers" Version="4.5.1" />
<PackageVersion Include="System.Collections.Immutable" Version="$(SystemCollectionsImmutableVersion)" />
<PackageVersion Include="System.CommandLine.NamingConventionBinder" Version="2.0.0-beta4.22272.1" />

Просмотреть файл

@ -8,7 +8,7 @@
<PackageVersion Include="Microsoft.Diagnostics.Tracing.TraceEvent" Version="3.1.3" />
<PackageVersion Include="Moq.AutoMock" Version="3.1.0" />
<PackageVersion Include="Moq" Version="4.18.4" />
<PackageVersion Include="Polly.Testing" Version="8.2.1" />
<PackageVersion Include="Polly.Testing" Version="8.3.0" />
<PackageVersion Include="StrongNamer" Version="0.2.5" />
<PackageVersion Include="System.Configuration.ConfigurationManager" Version="$(SystemConfigurationConfigurationManagerVersion)" />
<PackageVersion Include="Xunit.Combinatorial" Version="1.5.25" />

Просмотреть файл

@ -92,7 +92,13 @@ public sealed partial class HttpClientBuilderExtensionsTests
// add twice intentionally
builder.AddResilienceHandler("test", ConfigureBuilder);
builder.Services.Should().HaveCount(count + 2);
// We check that the count of existing services is not unnecessary increased.
//
// The additional 3 services that are registered are related to:
// - Configuration of HTTP client options
// - Configuration of resilience pipeline
// - Registration of keyed service for resilience pipeline
builder.Services.Should().HaveCount(count + 3);
}
[Fact]