This commit is contained in:
2021-05-14 15:56:29 +00:00
parent d1ff92c4e1
commit f9ef637daa
2 changed files with 25 additions and 14 deletions

View File

@@ -234,6 +234,7 @@ namespace AyaNova.Biz
//////////////////////////////////
// COMPARE TAGS COLLECTION
//
// A match here means *all* tags in the subscription are present in the object
//
public static bool TagsMatch(List<string> objectTags, List<string> subTags)
{
@@ -245,9 +246,8 @@ namespace AyaNova.Biz
//not enought tags on object to match sub tags?
if (subTags.Count > objectTags.Count) return false;
//ok, here it's worth checking it out
//Do ALL the tags in the subscription exist in the object?
return subTags.All(z => objectTags.Any(x => x == z));
}
/////////////////////////////////////////