ngocnicholas / airtable.net

Airtable .NET API Client
MIT License
141 stars 34 forks source link

All async operations are cancellable. AirtableBase accepts a user pro… #89

Closed ngocnicholas closed 2 months ago

ngocnicholas commented 2 months ago

AirtableBase.cs:

ngocnicholas commented 2 months ago

AirtableBase.cs: Added one more ctor for AirtableBase.cs: accepts a user provided HttpClient. All SendAsync calls are updated to take a CancellationToken as an additional arg.

HttpClientWithRetries.cs ctor accepts an optional argument: caller can provide a HttpClient Dispose(): does not dispose the HttpClient if it is provided by user, SendAsync(): takes a CancellationToken as an additional argument