internal bool GetNeedTimeFilter(TransferRule transferRule)
 {
     if(_TableFilter == null)
     {
         transferRule.Construct();
     }
     return _TableFilter.GetNeedTimeFilter();
 }
Beispiel #2
0
        /// <summary>
        /// 负责将读取到的config中rule的字符串转换成为rule的对象
        /// </summary>
        /// <param name="theReadData">Key存放的是规则名字,Value存放的是该规则的字符串</param>
        /// <returns>rule集合</returns>
        public static List <TransferRule> Convert(Dictionary <string, string> theReadData)
        {
            List <TransferRule> retVal = new List <TransferRule>();

            foreach (KeyValuePair <string, string> kvp in theReadData)
            {
                TransferRule aNewRule = CalculateRules(kvp.Key, kvp.Value);
                aNewRule.Check(kvp.Key, kvp.Value);
                aNewRule.Construct();
                retVal.Add(aNewRule);
            }
            return(retVal);
        }