Skip to main content

Checkpoint: Resilient API Client

Challenge on lesson: Checkpoint โ€” The Public API Client

CHALLENGE
Difficulty: intermediate+25 XP

Implement the client described in the checkpoint: ``csharp public sealed class ApiClient { public ApiClient(System.Net.Http.HttpClient http); public Task<string> GetUserAsync(int id, CancellationToken ct = default); public Task<string> GetUserWithRetryAsync(int id, int maxAttempts, CancellationToken ct = default); } ``

Back to lesson: Checkpoint โ€” The Public API Client