From 81245b23395d4ee2653210eb140594b93710ac28 Mon Sep 17 00:00:00 2001 From: Jonas Dellinger Date: Tue, 2 Mar 2021 12:19:55 +0100 Subject: [PATCH] Fix Paginate not being available in >NETSTANDARD2_1 --- SpotifyAPI.Web/Clients/Interfaces/IPaginator.cs | 2 +- SpotifyAPI.Web/Clients/Interfaces/ISpotifyClient.cs | 2 +- SpotifyAPI.Web/Clients/SimplePaginator.cs | 2 +- SpotifyAPI.Web/Clients/SpotifyClient.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SpotifyAPI.Web/Clients/Interfaces/IPaginator.cs b/SpotifyAPI.Web/Clients/Interfaces/IPaginator.cs index a9f2bdc4..7ca0fa12 100644 --- a/SpotifyAPI.Web/Clients/Interfaces/IPaginator.cs +++ b/SpotifyAPI.Web/Clients/Interfaces/IPaginator.cs @@ -39,7 +39,7 @@ namespace SpotifyAPI.Web IAPIConnector connector ); -#if NETSTANDARD2_1 +#if !NETSTANDARD2_0 /// /// Fetches all pages and returns one by one using IAsyncEnumerable /// diff --git a/SpotifyAPI.Web/Clients/Interfaces/ISpotifyClient.cs b/SpotifyAPI.Web/Clients/Interfaces/ISpotifyClient.cs index 96b68024..dfa7227f 100644 --- a/SpotifyAPI.Web/Clients/Interfaces/ISpotifyClient.cs +++ b/SpotifyAPI.Web/Clients/Interfaces/ISpotifyClient.cs @@ -128,7 +128,7 @@ namespace SpotifyAPI.Web IPaginator? paginator = default! ); -#if NETSTANDARD2_1 +#if !NETSTANDARD2_0 /// /// Paginate through pages by using IAsyncEnumerable, introduced in C# 8 /// The default paginator will fetch all available resources without a delay between requests. diff --git a/SpotifyAPI.Web/Clients/SimplePaginator.cs b/SpotifyAPI.Web/Clients/SimplePaginator.cs index b6e2c2e1..76edf8d1 100644 --- a/SpotifyAPI.Web/Clients/SimplePaginator.cs +++ b/SpotifyAPI.Web/Clients/SimplePaginator.cs @@ -68,7 +68,7 @@ namespace SpotifyAPI.Web return results; } -#if NETSTANDARD2_1 +#if !NETSTANDARD2_0 public async IAsyncEnumerable Paginate( IPaginatable firstPage, IAPIConnector connector, diff --git a/SpotifyAPI.Web/Clients/SpotifyClient.cs b/SpotifyAPI.Web/Clients/SpotifyClient.cs index 05b9f3b3..92f77107 100644 --- a/SpotifyAPI.Web/Clients/SpotifyClient.cs +++ b/SpotifyAPI.Web/Clients/SpotifyClient.cs @@ -190,7 +190,7 @@ namespace SpotifyAPI.Web return FetchPage(paging.Previous); } -#if NETSTANDARD2_1 +#if !NETSTANDARD2_0 /// /// Paginate through pages by using IAsyncEnumerable, introduced in C# 8