-
-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
42 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Flurl.Http.Configuration | ||
{ | ||
/// <summary> | ||
/// An IFlurlClientFactory implementation that caches and reuses the same one instance of | ||
/// FlurlClient per combination of scheme, host, and port. This is the default | ||
/// implementation used when calls are made fluently off Urls/strings. | ||
/// </summary> | ||
public class DefaultFlurlClientFactory : FlurlClientFactoryBase | ||
{ | ||
/// <summary> | ||
/// Returns a unique cache key based on scheme, host, and port of the given URL. | ||
/// </summary> | ||
/// <param name="url">The URL.</param> | ||
/// <returns>The cache key</returns> | ||
protected override string GetCacheKey(Url url) => $"{url.Scheme}|{url.Host}|{url.Port}"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.