mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-23 14:46:26 +00:00
b8a2190168
* feat: implements markets API * fix: use correct constructor name * feat: allow to pass a cancellation token * pass cancellation token * pass cancellation token only >NETSTANDARD2_1 Co-authored-by: Jonas Dellinger <jonas@dellinger.dev>
17 lines
519 B
C#
17 lines
519 B
C#
using System;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SpotifyAPI.Web.Http
|
|
{
|
|
/// <summary>
|
|
/// The Retry Handler will be directly called after the response is retrived and before errors and body are processed.
|
|
/// </summary>
|
|
public interface IRetryHandler
|
|
{
|
|
delegate Task<IResponse> RetryFunc(IRequest request, CancellationToken cancel = default);
|
|
|
|
Task<IResponse> HandleRetry(IRequest request, IResponse response, RetryFunc retry, CancellationToken cancel = default);
|
|
}
|
|
}
|