mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-26 16:06:27 +00:00
16 lines
423 B
C#
16 lines
423 B
C#
using System;
|
|
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);
|
|
|
|
Task<IResponse> HandleRetry(IRequest request, IResponse response, RetryFunc retry);
|
|
}
|
|
}
|