Browse Source

Update comments in AddPolicyRegistry methods (#33189)

There's three interfaces now, not two, so "both" is no longer correct.
Martin Costello 4 năm trước cách đây
mục cha
commit
e7ccd5f3f1

+ 2 - 2
src/HttpClientFactory/Polly/src/DependencyInjection/PollyServiceCollectionExtensions.cs

@@ -28,7 +28,7 @@ namespace Microsoft.Extensions.DependencyInjection
             }
 
             // Create an empty registry, register and return it as an instance. This is the best way to get a
-            // single instance registered using both interfaces.
+            // single instance registered using all the interfaces.
             var registry = new PolicyRegistry();
 
             services.AddSingleton<IConcurrentPolicyRegistry<string>>(registry);
@@ -90,7 +90,7 @@ namespace Microsoft.Extensions.DependencyInjection
             }
 
             // Create an empty registry, configure it and register it as an instance.
-            // This is the best way to get a single instance registered using both interfaces.
+            // This is the best way to get a single instance registered using all the interfaces.
             services.AddSingleton(serviceProvider =>
             {
                 var registry = new PolicyRegistry();