Skip to content

Commit 81245b2

Browse files
committed
Fix Paginate not being available in >NETSTANDARD2_1
1 parent e76577f commit 81245b2

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎SpotifyAPI.Web/Clients/Interfaces/IPaginator.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Task<IList<T>> PaginateAll<T, TNext>(
3939
IAPIConnector connector
4040
);
4141

42-
#if NETSTANDARD2_1
42+
#if !NETSTANDARD2_0
4343
/// <summary>
4444
/// Fetches all pages and returns one by one using IAsyncEnumerable
4545
/// </summary>

‎SpotifyAPI.Web/Clients/Interfaces/ISpotifyClient.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Task<IList<T>> PaginateAll<T, TNext>(
128128
IPaginator? paginator = default!
129129
);
130130

131-
#if NETSTANDARD2_1
131+
#if !NETSTANDARD2_0
132132
/// <summary>
133133
/// Paginate through pages by using IAsyncEnumerable, introduced in C# 8
134134
/// The default paginator will fetch all available resources without a delay between requests.

‎SpotifyAPI.Web/Clients/SimplePaginator.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public async Task<IList<T>> PaginateAll<T, TNext>(
6868
return results;
6969
}
7070

71-
#if NETSTANDARD2_1
71+
#if !NETSTANDARD2_0
7272
public async IAsyncEnumerable<T> Paginate<T>(
7373
IPaginatable<T> firstPage,
7474
IAPIConnector connector,

‎SpotifyAPI.Web/Clients/SpotifyClient.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public Task<TNext> PreviousPage<T, TNext>(Paging<T, TNext> paging)
190190
return FetchPage<TNext>(paging.Previous);
191191
}
192192

193-
#if NETSTANDARD2_1
193+
#if !NETSTANDARD2_0
194194

195195
/// <summary>
196196
/// Paginate through pages by using IAsyncEnumerable, introduced in C# 8

0 commit comments

Comments
 (0)