You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for CancellationTokens within client and services methods. (#33)
* Used (inheritdoc) for dynamic documentation commets.
Classes now utilize the usage of <inheritdoc> to inherit the implemented interface documentation and reduce duplicate documentation comments.
* Added ICancellableTodoistRestClient interface.
The added interface inherits from ITodoistRestClient and extends it with method overloads that support cancellation.
TodoistRestClient is also changed to implement ICancellableTodoistRestClient.
* Added support for cancellation in TodoistClient and TodoistTokenlessClient.
In TodoistClient we typically pass the cancellation token to _restClient if it implements ICancellableTodoistRestClient.
The rest is just passing the cancellation token as a parameter along the method call chain.
* Updated all services to support optional cancellation token in their methods.
Cancellation tokens are then passed to the IAdvancedTodoistClient method calls.
* Added TodoistClient constructor overload that accepts an ICancellableRestClient argument.
* Removed ICancellableTodoistRestClient interface;
And added cancellation tokens to ITodoistRestClient directly.
/// Gets list of recent backup archives asynchronous.
23
-
/// </summary>
24
-
/// <returns>The backups information.</returns>
25
-
/// <remarks>Todoist creates a backup archive of users' data on a daily basis. Backup archives can also be accessed from the web app (Todoist Settings -> Backups).</remarks>
0 commit comments