コード例 #1
0
 public virtual bool DeleteAllImage(string listId)
 {
     return(PolicyService.ExecuteRetryAndCapture400Errors(
                "ContentModeratorService.DeleteAllImage",
                ApiKeys.ContentModeratorRetryInSeconds,
                () =>
     {
         ContentModeratorRepository.DeleteAllImage(listId);
         return true;
     },
                false));
 }
コード例 #2
0
        public virtual bool DeleteAllImage(string listId)
        {
            try
            {
                ContentModeratorRepository.DeleteAllImage(listId);

                return(true);
            }
            catch (Exception ex)
            {
                Logger.Error("ContentModeratorService.DeleteAllImage failed", this, ex);
            }

            return(false);
        }