Ejemplo n.º 1
0
        private async Task <bool> SystemCancelSearchRequest(SSG_SearchRequest request)
        {
            try
            {
                SSG_SearchRequest sr = await _searchRequestService.SystemCancelSearchRequest(request, _cancellationToken);

                if (sr.StatusCode != SearchRequestStatusCode.SystemCancelled.Value)
                {
                    return(false);
                }
            }catch (Exception e)
            {
                _logger.LogInformation($"{request.FileId} File System Cancel failed." + e.Message);
                return(false);
            }
            _logger.LogInformation($"{request.FileId} File has been cancelled successfully.");
            return(true);
        }