コード例 #1
0
        public async Task <string> GetRecentFileReferencesAsync(int userId, CancellationToken token = default)
        {
            var response = await _cachingService.AddOrGetExistingAsync
                           (
                userId,
                CacheRegions.FileReferences,
                () => _graphQLService.GetRecentFileReferencesAsync(userId, token)
                           )
                           .ConfigureAwait(false);

            return(response);
        }