Esempio n. 1
0
        public bool MatchFile(string fileFullName)
        {
            if (MatchTypes == null)
            {
                return(true);
            }

            string extend = Path.GetExtension(fileFullName).Trim('.').ToLower();

            return(MatchTypes.Contains(extend));
        }
Esempio n. 2
0
        public List <MatchedCustomer> MatchCustomers(CustomerMatchParameter customerMatchParameter)
        {
            List <MatchedCustomer> customerIds = null;

            // Known specific match type which is not listed in the list of MatchTypes for which default
            // matching rules should be applied
            if (MatchTypes.Contains(customerMatchParameter.MatchType)
                &&
                !MatchTypesOverrideMatchRules.Contains(customerMatchParameter.MatchType)
                )
            {
                customerIds = MatchWithSpecifiedMatchType(customerMatchParameter);
            }
            else  // Unknown match type - let the Db routines decide
            {
                customerIds = MatchWithDefaultMatchTypeRules(customerMatchParameter);
            }

            return(customerIds);
        }