Skip to content

Commit

Permalink
Add DnsRoundRobin to build
Browse files Browse the repository at this point in the history
  • Loading branch information
liveans committed Sep 19, 2024
1 parent 368528f commit fcf49af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ In the older `HttpWebRequest` API, enabling DNS Round Robin was straightforward

**New Code Using `HttpClient`**:

:::code source="../snippets/httpclient/DnsRoundRobin.cs" id="DnsRoundRobinConnector":::

You can find implementation of `DnsRoundRobinConnector` [here](../snippets/httpclient/DnsRoundRobin.cs).

`DnsRoundRobinConnector` Usage:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
using System.Net;
using System.Net.Sockets;

// <DnsRoundRobinConnector>
public sealed class DnsRoundRobinConnector : IDisposable
// </DnsRoundRobinConnector>
{
private const int DefaultDnsRefreshIntervalSeconds = 2 * 60;
private const int MaxCleanupIntervalSeconds = 60;
Expand Down

0 comments on commit fcf49af

Please sign in to comment.