diff --git a/SpotNetCore/SpotNetCore/Implementation/AuthenticationManager.cs b/SpotNetCore/SpotNetCore/Implementation/AuthenticationManager.cs index f80bab9..e052261 100644 --- a/SpotNetCore/SpotNetCore/Implementation/AuthenticationManager.cs +++ b/SpotNetCore/SpotNetCore/Implementation/AuthenticationManager.cs @@ -26,11 +26,6 @@ public AuthenticationManager(IConfigurationRoot config) _httpClient = new HttpClient(); } - ~AuthenticationManager() - { - Dispose(false); - } - public bool IsTokenAboutToExpire() => Token.ExpiresAt <= DateTime.Now.AddSeconds(20); private async Task GetAuthToken() diff --git a/SpotNetCore/SpotNetCore/Implementation/CommandHandler.cs b/SpotNetCore/SpotNetCore/Implementation/CommandHandler.cs index 129ecab..42a192b 100644 --- a/SpotNetCore/SpotNetCore/Implementation/CommandHandler.cs +++ b/SpotNetCore/SpotNetCore/Implementation/CommandHandler.cs @@ -27,11 +27,6 @@ public CommandHandler(AuthenticationManager authenticationManager, PlayerService _playerService = playerService; _searchService = searchService; } - - ~CommandHandler() - { - Dispose(false); - } public async Task HandleCommands() { diff --git a/SpotNetCore/SpotNetCore/Services/AlbumService.cs b/SpotNetCore/SpotNetCore/Services/AlbumService.cs index 56365ce..177f0cb 100644 --- a/SpotNetCore/SpotNetCore/Services/AlbumService.cs +++ b/SpotNetCore/SpotNetCore/Services/AlbumService.cs @@ -25,11 +25,6 @@ public AlbumService(AuthenticationManager authenticationManager) }; } - ~AlbumService() - { - Dispose(false); - } - public async Task> GetTracksFromAlbumCollection(IEnumerable albums) { if (albums.IsNullOrEmpty()) diff --git a/SpotNetCore/SpotNetCore/Services/ArtistService.cs b/SpotNetCore/SpotNetCore/Services/ArtistService.cs index 3a1f05b..e3aacd7 100644 --- a/SpotNetCore/SpotNetCore/Services/ArtistService.cs +++ b/SpotNetCore/SpotNetCore/Services/ArtistService.cs @@ -24,11 +24,6 @@ public ArtistService(AuthenticationManager authenticationManager) } }; } - - ~ArtistService() - { - Dispose(false); - } public async Task> GetTopTracksForArtist(string id) { diff --git a/SpotNetCore/SpotNetCore/Services/PlayerService.cs b/SpotNetCore/SpotNetCore/Services/PlayerService.cs index d0b5d06..d2bea38 100644 --- a/SpotNetCore/SpotNetCore/Services/PlayerService.cs +++ b/SpotNetCore/SpotNetCore/Services/PlayerService.cs @@ -28,11 +28,6 @@ public PlayerService(AuthenticationManager authenticationManager) }; } - ~PlayerService() - { - Dispose(false); - } - public async Task PlayCurrentTrack() { var response = await _httpClient.PutAsync("https://api.spotify.com/v1/me/player/play", null); diff --git a/SpotNetCore/SpotNetCore/Services/PlaylistService.cs b/SpotNetCore/SpotNetCore/Services/PlaylistService.cs index 1464ee9..00c3d1d 100644 --- a/SpotNetCore/SpotNetCore/Services/PlaylistService.cs +++ b/SpotNetCore/SpotNetCore/Services/PlaylistService.cs @@ -25,11 +25,6 @@ public PlaylistService(AuthenticationManager authenticationManager) }; } - ~PlaylistService() - { - Dispose(false); - } - public async Task> GetTracksInPlaylist(string id) { var response = await _httpClient.GetAsync($"https://api.spotify.com/v1/playlists/{id}/tracks?market=GB"); diff --git a/SpotNetCore/SpotNetCore/Services/SearchService.cs b/SpotNetCore/SpotNetCore/Services/SearchService.cs index 279ae31..d769ef3 100644 --- a/SpotNetCore/SpotNetCore/Services/SearchService.cs +++ b/SpotNetCore/SpotNetCore/Services/SearchService.cs @@ -31,11 +31,6 @@ public SearchService(AuthenticationManager authenticationManager, ArtistService }; } - ~SearchService() - { - Dispose(false); - } - public async Task> SearchForTrack(string query) { var response = await _httpClient.GetAsync($"https://api.spotify.com/v1/search?q={query}&type=track");