fix grpc loadbalancing doc based on current APIs (#25781)

pull/25784/head
Moien Tajik 2022-05-01 03:04:06 +04:30 committed by GitHub
parent 29f376723f
commit 1d3bafd4f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ By default, a DNS resolver is refreshed if a connection is interrupted. The DNS
```csharp
services.AddSingleton<ResolverFactory>(
() => new DnsResolverFactory(refreshInterval: TimeSpan.FromSeconds(30)));
sp => new DnsResolverFactory(refreshInterval: TimeSpan.FromSeconds(30)));
```
The preceding code creates a `DnsResolverFactory` with a refresh interval and registers it with dependency injection. For more information on using a custom-configured resolver, see [Configure custom resolvers and load balancers](#configure-custom-resolvers-and-load-balancers).