Spotify.NET/SpotifyAPI.Web/RetryHandlers/IRetryHandler.cs

16 lines
423 B
C#
Raw Normal View History

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
{
2020-06-03 16:44:13 +01:00
delegate Task<IResponse> RetryFunc(IRequest request);
Task<IResponse> HandleRetry(IRequest request, IResponse response, RetryFunc retry);
}
}