Skip to content

Commit e7ccd5f

Browse files
Update comments in AddPolicyRegistry methods (#33189)
There's three interfaces now, not two, so "both" is no longer correct.
1 parent b011da8 commit e7ccd5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/HttpClientFactory/Polly/src/DependencyInjection/PollyServiceCollectionExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static IPolicyRegistry<string> AddPolicyRegistry(this IServiceCollection
2828
}
2929

3030
// Create an empty registry, register and return it as an instance. This is the best way to get a
31-
// single instance registered using both interfaces.
31+
// single instance registered using all the interfaces.
3232
var registry = new PolicyRegistry();
3333

3434
services.AddSingleton<IConcurrentPolicyRegistry<string>>(registry);
@@ -90,7 +90,7 @@ public static IServiceCollection AddPolicyRegistry(this IServiceCollection servi
9090
}
9191

9292
// Create an empty registry, configure it and register it as an instance.
93-
// This is the best way to get a single instance registered using both interfaces.
93+
// This is the best way to get a single instance registered using all the interfaces.
9494
services.AddSingleton(serviceProvider =>
9595
{
9696
var registry = new PolicyRegistry();

0 commit comments

Comments
 (0)