internal static bool IsMatched(this BranchStepInfo info, string productID, bool checkProduct = true) { if (checkProduct == false) { return(true); } if (string.IsNullOrEmpty(productID)) { return(false); } if (info.IsAllProduct) { return(true); } if (info.ProductList == null || info.ProductList.Count == 0) { return(true); } if (info.ProductList.Contains(productID)) { return(true); } return(false); }
internal static bool IsLoadable(this BranchStepInfo info, string productID, string ownerType) { string defaultOwnerType = SiteConfigHelper.GetDefaultOwnerType(); if (ownerType != defaultOwnerType) { return(false); } if (info.IsAllProduct || info.IsMatched(productID)) { return(true); } return(false); }