From fcfe02ee7370b6462d995bb8c37aaebf3abd31e7 Mon Sep 17 00:00:00 2001 From: Claus Vium Date: Wed, 6 Feb 2019 22:40:49 +0100 Subject: [PATCH 1/2] Add await to GetCountries in LocalizationService --- MediaBrowser.Api/LocalizationService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.Api/LocalizationService.cs b/MediaBrowser.Api/LocalizationService.cs index 3b2e18852a..1524c8d26d 100644 --- a/MediaBrowser.Api/LocalizationService.cs +++ b/MediaBrowser.Api/LocalizationService.cs @@ -2,6 +2,7 @@ using MediaBrowser.Controller.Net; using MediaBrowser.Model.Entities; using MediaBrowser.Model.Globalization; using MediaBrowser.Model.Services; +using System.Threading.Tasks; namespace MediaBrowser.Api { @@ -81,9 +82,9 @@ namespace MediaBrowser.Api /// /// The request. /// System.Object. - public object Get(GetCountries request) + public async Task Get(GetCountries request) { - var result = _localization.GetCountries(); + var result = await _localization.GetCountries(); return ToOptimizedResult(result); } From e44918264167f664702ee3f4910d93a14d3e07b6 Mon Sep 17 00:00:00 2001 From: Claus Vium Date: Wed, 6 Feb 2019 22:54:57 +0100 Subject: [PATCH 2/2] Move import --- MediaBrowser.Api/LocalizationService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MediaBrowser.Api/LocalizationService.cs b/MediaBrowser.Api/LocalizationService.cs index 1524c8d26d..eeff67e13c 100644 --- a/MediaBrowser.Api/LocalizationService.cs +++ b/MediaBrowser.Api/LocalizationService.cs @@ -1,8 +1,8 @@ +using System.Threading.Tasks; using MediaBrowser.Controller.Net; using MediaBrowser.Model.Entities; using MediaBrowser.Model.Globalization; using MediaBrowser.Model.Services; -using System.Threading.Tasks; namespace MediaBrowser.Api {