コード例 #1
0
        protected sealed override object EvaluateCore(EvaluationContext evaluationContext, out ResultMemory resultMemory)
        {
            resultMemory = null;
            var templateContext = evaluationContext.State as TemplateContext;

            ArgUtil.NotNull(templateContext, nameof(templateContext));
            var executionContext = templateContext.State[nameof(IExecutionContext)] as IExecutionContext;

            ArgUtil.NotNull(executionContext, nameof(executionContext));
            ActionResult jobStatus = executionContext.JobContext.Status ?? ActionResult.Success;

            return(jobStatus == ActionResult.Failure);
        }