Skip to content

Update comments in AddPolicyRegistry methods #33189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static IPolicyRegistry<string> AddPolicyRegistry(this IServiceCollection
}

// 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);
Expand Down Expand Up @@ -90,7 +90,7 @@ public static IServiceCollection AddPolicyRegistry(this IServiceCollection servi
}

// 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();
Expand Down