예제 #1
0
        public async Task <SearchResponse> GetSearchAsync(SearchRequest request)
        {
            if (request is null)
            {
                throw new ArgumentNullException(nameof(request));
            }

            var result = await _cache.AddOrGetExistingAsync
                         (
                request.Key,
                () =>
            {
                return(_graphQLService.GetSearchAsync(request.FileReferenceId, request.SearchId, request.PagingOptions));
            }
                         );

            return(result.Data);
        }