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
);
#if NETSTANDARD2_1
#if !NETSTANDARD2_0
/// <summary>
/// Fetches all pages and returns one by one using IAsyncEnumerable
/// </summary>

View File

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

View File

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

View File

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