From 66d08c9b759f4f969c605f6175536ad7fbefc0d4 Mon Sep 17 00:00:00 2001 From: JoseOchoaITH Date: Wed, 9 Sep 2020 16:50:22 -0300 Subject: [PATCH] Add missing awaits on CachingResourceStore --- .../src/Stores/Caching/CachingResourceStore.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/IdentityServer4/src/Stores/Caching/CachingResourceStore.cs b/src/IdentityServer4/src/Stores/Caching/CachingResourceStore.cs index 482f7f1c53..c4e3923d3a 100644 --- a/src/IdentityServer4/src/Stores/Caching/CachingResourceStore.cs +++ b/src/IdentityServer4/src/Stores/Caching/CachingResourceStore.cs @@ -76,7 +76,7 @@ public async Task GetAllResourcesAsync() var all = await _allCache.GetAsync(key, _options.Caching.ResourceStoreExpiration, - () => _inner.GetAllResourcesAsync(), + async () => await _inner.GetAllResourcesAsync(), _logger); return all; @@ -89,7 +89,7 @@ public async Task> FindApiResourcesByNameAsync(IEnumera var apis = await _apiResourceCache.GetAsync(key, _options.Caching.ResourceStoreExpiration, - () => _inner.FindApiResourcesByNameAsync(apiResourceNames), + async () => await _inner.FindApiResourcesByNameAsync(apiResourceNames), _logger); return apis; @@ -102,7 +102,7 @@ public async Task> FindIdentityResourcesByScopeNam var identities = await _identityCache.GetAsync(key, _options.Caching.ResourceStoreExpiration, - () => _inner.FindIdentityResourcesByScopeNameAsync(names), + async () => await _inner.FindIdentityResourcesByScopeNameAsync(names), _logger); return identities; @@ -115,7 +115,7 @@ public async Task> FindApiResourcesByScopeNameAsync(IEn var apis = await _apiByScopeCache.GetAsync(key, _options.Caching.ResourceStoreExpiration, - () => _inner.FindApiResourcesByScopeNameAsync(names), + async () => await _inner.FindApiResourcesByScopeNameAsync(names), _logger); return apis; @@ -128,7 +128,7 @@ public async Task> FindApiScopesByNameAsync(IEnumerable _inner.FindApiScopesByNameAsync(scopeNames), + async () => await _inner.FindApiScopesByNameAsync(scopeNames), _logger); return apis;