In this Sitecore article, there is a code sample implements ICondition and IContactSearchQueryFactory. We believe that this code will help us to add custom rules to the Sitecore List Manager. However, when we try to implement this class, we get the errors "The type or namespace name 'ICondition' could not be found." and "The type or namespace name 'IContactSearchQueryFactory' could not be found."
We have added references to the dlls Sitecore.XConnect.Segmentation.Predicates.dll and Sitecore.Framework.Rules.dll (per this documentation for 9.1 - we're on Sitecore 10.2) from our sitecore instance, and they're referenced via usings in the file where we're trying to implement the class, but the error persists.
I'm wondering if there is a possibility that those are in a different DLL, otherwise I'm stumped as to why they wouldn't be found. Our code is exactly the same as the example in that sitecore article (see below). How can we resolve those two interfaces?
using System;
using System.Linq.Expressions;
using Sitecore.Framework.Rules;
using Sitecore.XConnect;
using Sitecore.XConnect.Segmentation.Predicates;
using Sitecore.XConnect.Collection.Model;
using System.Linq;
namespace Documentation.Examples
{
public class PreferredCinemaMatches : ICondition, IContactSearchQueryFactory
{
//implementation
}
}