コード例 #1
0
 public virtual List <WorkflowExpressionResponse> GetAllWorkflows(string teamName)
 {
     return(PolicyService.ExecuteRetryAndCapture400Errors(
                "ContentModeratorService.GetAllWorkflows",
                ApiKeys.ContentModeratorRetryInSeconds,
                () =>
     {
         var result = ContentModeratorRepository.GetAllWorkflows(teamName);
         return result;
     },
                null));
 }
コード例 #2
0
        public virtual List <WorkflowExpressionResponse> GetAllWorkflows(string teamName)
        {
            try
            {
                var result = ContentModeratorRepository.GetAllWorkflows(teamName);

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

            return(null);
        }