From 1d3bafd4f9e939404761c70ade3bcc87d39c33f6 Mon Sep 17 00:00:00 2001 From: Moien Tajik Date: Sun, 1 May 2022 03:04:06 +0430 Subject: [PATCH] fix grpc loadbalancing doc based on current APIs (#25781) --- aspnetcore/grpc/loadbalancing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/grpc/loadbalancing.md b/aspnetcore/grpc/loadbalancing.md index d32fb7859d..f9dd7fe695 100644 --- a/aspnetcore/grpc/loadbalancing.md +++ b/aspnetcore/grpc/loadbalancing.md @@ -79,7 +79,7 @@ By default, a DNS resolver is refreshed if a connection is interrupted. The DNS ```csharp services.AddSingleton( - () => 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).