Fix Paginate not being available in >NETSTANDARD2_1

This commit is contained in:
Jonas Dellinger 2021-03-02 12:19:55 +01:00
parent e76577f567
commit 81245b2339
4 changed files with 4 additions and 4 deletions

View File

@ -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>

View File

@ -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.

View File

@ -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,

View File

@ -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