C#C
C#14mo ago
surwren

Refactoring Similar Network Requests

I have 3 async methods with a great deal of similarities but some differences (some use Authorization token, some have Json payload, some return Task<bool>, others Task) but all make network requests in a similar flow.

What is an approach I could use to refactor them?
Was this page helpful?