public IEnumerable <string> GetItemsByClaim(ClaimId claimId)
        {
            var result = _implementation.GetItemsByClaim(claimId);

            // cache result
            return(result);
        }
        public IEnumerable <string> GetItemsByClaim(ClaimId claimId)
        {
            int retries = _retries;

retry:
            try
            {
                return(_implementation.GetItemsByClaim(claimId));
            }
            catch
            {
                if (retries-- > 0)
                {
                    goto retry;
                }

                throw;
            }
        }
Пример #3
0
        public IEnumerable <string> GetItemsByClaim(ClaimId claimId)
        {
            // try return from cache

            int retries = 2;

retry:
            try
            {
                var result = _service.GetItemsByClaim(claimId);
                // cache result
                return(result);
            }
            catch
            {
                if (retries-- > 0)
                {
                    goto retry;
                }

                throw;
            }
        }
 public IEnumerable <string> GetItemsByClaim(ClaimId claimId)
 {
     // Authorize
     return(new[] { "items found based on ClaimId" });
 }
 public IEnumerable <string> GetItemsByClaim(ClaimId claimId)
 {
     // Authorize
     return(_implementation.GetItemsByClaim(claimId));
 }