From 2d3d2d4c301951691c4c3d069612fb3db79cdf6a Mon Sep 17 00:00:00 2001 From: Michael Bisbjerg Date: Mon, 26 Apr 2021 22:53:14 +0200 Subject: [PATCH] Rename GetImageBytes, fixes #375 --- TMDbLib/Client/TMDbClient.cs | 8 +++++++- TestApplication/Program.cs | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/TMDbLib/Client/TMDbClient.cs b/TMDbLib/Client/TMDbClient.cs index fa45c87c..fc2e7183 100644 --- a/TMDbLib/Client/TMDbClient.cs +++ b/TMDbLib/Client/TMDbClient.cs @@ -169,7 +169,13 @@ public Uri GetImageUrl(string size, string filePath, bool useSsl = false) return new Uri(baseUrl + size + filePath); } - public async Task GetImageBytes(string size, string filePath, bool useSsl = false, CancellationToken token = default) + [Obsolete("Use " + nameof(GetImageBytesAsync))] + public Task GetImageBytes(string size, string filePath, bool useSsl = false, CancellationToken token = default) + { + return GetImageBytesAsync(size, filePath, useSsl, token); + } + + public async Task GetImageBytesAsync(string size, string filePath, bool useSsl = false, CancellationToken token = default) { Uri url = GetImageUrl(size, filePath, useSsl); diff --git a/TestApplication/Program.cs b/TestApplication/Program.cs index f7d289d5..b72cfe87 100644 --- a/TestApplication/Program.cs +++ b/TestApplication/Program.cs @@ -123,7 +123,7 @@ private static async Task ProcessImages(TMDbClient client, IEnumerable