mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
docs(archival): 📝 add Polly todos
This commit is contained in:
parent
a4844c7679
commit
716cd38284
2 changed files with 2 additions and 0 deletions
|
|
@ -92,6 +92,7 @@ private async Task DownloadSegments(
|
|||
var readTasks = new List<Task<Stream>>();
|
||||
foreach (var segment in segments)
|
||||
{
|
||||
// TODO: add Polly for resiliency
|
||||
var response = await _httpClient.GetAsync(segment.Url, HttpCompletionOption.ResponseHeadersRead, cancellationToken);
|
||||
responses.Add(response);
|
||||
response.EnsureSuccessStatusCode();
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ public static class ConfigurationExtensions
|
|||
{
|
||||
public static void AddApiClients(this IServiceCollection services, IConfiguration configuration)
|
||||
{
|
||||
// TODO: add Polly for resiliency
|
||||
// TODO: use SystemTextJsonContentSerializer() once less feature-limited
|
||||
services.AddRefitClient<IDirectoryApi>()
|
||||
.ConfigureHttpClient(c =>
|
||||
|
|
|
|||
Loading…
Reference in a new issue