Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
Add missing awaits on CachingResourceStore
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseOchoaITH authored and JoseOchoaITH committed Sep 9, 2020
1 parent 8d6d724 commit 66d08c9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/IdentityServer4/src/Stores/Caching/CachingResourceStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public async Task<Resources> GetAllResourcesAsync()

var all = await _allCache.GetAsync(key,
_options.Caching.ResourceStoreExpiration,
() => _inner.GetAllResourcesAsync(),
async () => await _inner.GetAllResourcesAsync(),
_logger);

return all;
Expand All @@ -89,7 +89,7 @@ public async Task<IEnumerable<ApiResource>> FindApiResourcesByNameAsync(IEnumera

var apis = await _apiResourceCache.GetAsync(key,
_options.Caching.ResourceStoreExpiration,
() => _inner.FindApiResourcesByNameAsync(apiResourceNames),
async () => await _inner.FindApiResourcesByNameAsync(apiResourceNames),
_logger);

return apis;
Expand All @@ -102,7 +102,7 @@ public async Task<IEnumerable<IdentityResource>> FindIdentityResourcesByScopeNam

var identities = await _identityCache.GetAsync(key,
_options.Caching.ResourceStoreExpiration,
() => _inner.FindIdentityResourcesByScopeNameAsync(names),
async () => await _inner.FindIdentityResourcesByScopeNameAsync(names),
_logger);

return identities;
Expand All @@ -115,7 +115,7 @@ public async Task<IEnumerable<ApiResource>> FindApiResourcesByScopeNameAsync(IEn

var apis = await _apiByScopeCache.GetAsync(key,
_options.Caching.ResourceStoreExpiration,
() => _inner.FindApiResourcesByScopeNameAsync(names),
async () => await _inner.FindApiResourcesByScopeNameAsync(names),
_logger);

return apis;
Expand All @@ -128,7 +128,7 @@ public async Task<IEnumerable<ApiScope>> FindApiScopesByNameAsync(IEnumerable<st

var apis = await _apiScopeCache.GetAsync(key,
_options.Caching.ResourceStoreExpiration,
() => _inner.FindApiScopesByNameAsync(scopeNames),
async () => await _inner.FindApiScopesByNameAsync(scopeNames),
_logger);

return apis;
Expand Down

0 comments on commit 66d08c9

Please sign in to comment.