Class ContactDomainDuplicateRule
Match contacts by domain name
Inherited Members
Namespace: SuperOffice.CRM.Data.Util.Duplicates
Assembly: SoDataBase.BusinessLogic.dll
Syntax
[ContactDuplicateRulePlugin("ContactDomainDuplicateRule")]
public class ContactDomainDuplicateRule : IContactDuplicateRule, IDuplicateRule
Constructors
ContactDomainDuplicateRule()
Match contacts by domain name
Declaration
public ContactDomainDuplicateRule()
Properties
DisplayName
Display name of rule
Declaration
public string DisplayName { get; }
Property Value
Type | Description |
---|---|
string |
DisplayTooltip
Description of rule
Declaration
public string DisplayTooltip { get; }
Property Value
Type | Description |
---|---|
string |
Name
Unique identifying name for rule
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
Methods
CreateNewEntity(DuplicateEntry)
This operation is not supported for this rule
Declaration
public int CreateNewEntity(DuplicateEntry entry)
Parameters
Type | Name | Description |
---|---|---|
DuplicateEntry | entry | Entry to create contact from |
Returns
Type | Description |
---|---|
int | Primary key of contact from superoffice database |
GetDuplicatesAsync(CancellationToken, params string[])
Get matching records in the superoffice database, using domain value
Declaration
public Task<DuplicateEntry[]> GetDuplicatesAsync(CancellationToken cancellationToken, params string[] domains)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | |
string[] | domains | domain of contact to lookup |
Returns
Type | Description |
---|---|
Task<DuplicateEntry[]> | Any duplicates found in the database |
GetIsActiveAsync(CancellationToken)
Indicates if this is an active rule that should be asked for duplicates
Declaration
public Task<bool> GetIsActiveAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<bool> |
SetIsActiveAsync(bool, CancellationToken)
Indicates if this is an active rule that should be asked for duplicates
Declaration
public Task SetIsActiveAsync(bool isActive, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
bool | isActive | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task |