コード例 #1
0
        private IEnumerable <ResultPair> EvaluateSourceItem(SourcePair sourceItem, Period evalPeriod, IPeriodProfile evalProfile, IEnumerable <ResultPair> evalResults)
        {
            TargetItem targetInResult = sourceItem.Key;
            SourcePack sourceInResult = sourceItem.Value;

            IEnumerable <ResultPack> resultList = sourceInResult.OnSuccessToResultSetEvaluate(targetInResult, evalPeriod, evalProfile, evalResults, _evaluateResultsFunc);

            return(resultList.Select((r) => (new ResultPair(sourceItem.Key, r))).ToList());
        }
コード例 #2
0
        public TargetItem StoreGeneralItem(TargetData dataItem)
        {
            ArticleTarget newTarget = new ArticleTarget(dataItem.Head, dataItem.Part, dataItem.Code, dataItem.Seed);

            SourcePack newSource = GetTemplateSourceForArticle(dataItem.Code, dataItem.Tags);

            model.Add(newTarget, newSource);

            return(newTarget);
        }
コード例 #3
0
        public TargetItem StoreGeneralItem(TargetHead codeHead, TargetPart codePart, ConfigCode codeBody, TargetSeed seedBody, ISourceValues tagsBody)
        {
            ArticleTarget newTarget = new ArticleTarget(codeHead, codePart, codeBody, seedBody);

            SourcePack newSource = GetTemplateSourceForArticle(codeBody, tagsBody);

            model.Add(newTarget, newSource);

            return(newTarget);
        }