mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-23 14:46:26 +00:00
Fix Paginate not being available in >NETSTANDARD2_1
This commit is contained in:
parent
e76577f567
commit
81245b2339
@ -39,7 +39,7 @@ namespace SpotifyAPI.Web
|
||||
IAPIConnector connector
|
||||
);
|
||||
|
||||
#if NETSTANDARD2_1
|
||||
#if !NETSTANDARD2_0
|
||||
/// <summary>
|
||||
/// Fetches all pages and returns one by one using IAsyncEnumerable
|
||||
/// </summary>
|
||||
|
@ -128,7 +128,7 @@ namespace SpotifyAPI.Web
|
||||
IPaginator? paginator = default!
|
||||
);
|
||||
|
||||
#if NETSTANDARD2_1
|
||||
#if !NETSTANDARD2_0
|
||||
/// <summary>
|
||||
/// Paginate through pages by using IAsyncEnumerable, introduced in C# 8
|
||||
/// The default paginator will fetch all available resources without a delay between requests.
|
||||
|
@ -68,7 +68,7 @@ namespace SpotifyAPI.Web
|
||||
return results;
|
||||
}
|
||||
|
||||
#if NETSTANDARD2_1
|
||||
#if !NETSTANDARD2_0
|
||||
public async IAsyncEnumerable<T> Paginate<T>(
|
||||
IPaginatable<T> firstPage,
|
||||
IAPIConnector connector,
|
||||
|
@ -190,7 +190,7 @@ namespace SpotifyAPI.Web
|
||||
return FetchPage<TNext>(paging.Previous);
|
||||
}
|
||||
|
||||
#if NETSTANDARD2_1
|
||||
#if !NETSTANDARD2_0
|
||||
|
||||
/// <summary>
|
||||
/// Paginate through pages by using IAsyncEnumerable, introduced in C# 8
|
||||
|
Loading…
Reference in New Issue
Block a user