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