コード例 #1
0
        public FlowRuleParameters(XmlConfigFile config, string flowRuleName, FlowRuleType type)
        {
            this.config = config;
            this.SourceAttributeNames = new List <string>();
            this.Transforms           = new List <Transform>();
            this.MergeValues          = flowRuleName.StartsWith("!");

            if (this.MergeValues)
            {
                flowRuleName = flowRuleName.Remove(0, 1);
            }

            this.GetAliasDefinition(flowRuleName);

            if (this.aliasDefinition == null)
            {
                this.flowRuleDescription = flowRuleName;
            }
            else
            {
                this.flowRuleDescription = this.aliasDefinition.FlowRuleDefinition;
            }

            this.FlowRuleType = type;
            this.ValidateFlowRuleName();

            this.GetSourceAttributes();
            this.GetTargetAttribute();
            this.GetTransforms();
        }
コード例 #2
0
ファイル: MAExtensionObject.cs プロジェクト: sean-m/umare
        private FlowRuleParameters GetParameters(string flowRuleName, FlowRuleType type)
        {
            if (!this.flowRuleParamCache.ContainsKey(flowRuleName))
            {
                this.flowRuleParamCache.Add(flowRuleName, new FlowRuleParameters(this.config, flowRuleName, type));
            }

            return(this.flowRuleParamCache[flowRuleName]);
        }