I am working on XDB analytics code upgrade from Sitecore 8.2 to Sitecore 9.3
Some of the xdb repository not working in Sitecore 9.3 analytics.
For Example :tracking/contactRepository, tracking/contactManager as shown below
public void MergeTwoKnownContacts(string dyingContactIdentity, Contact survivingContact)
{
if (survivingContact == null || string.IsNullOrEmpty(dyingContactIdentity))
return;
ContactRepository ContactRepository = Factory.CreateObject("tracking/contactRepository", true) as ContactRepository;
Contact dyingContact = GetContact(dyingContactIdentity, "Contact Merge");
if (ContactRepository != null && dyingContact != null)
{
// The data will be transferred from the dyingContact to the survivingContact
ContactRepository.MergeContacts(survivingContact, dyingContact);
}
}
As per my understating "tracking/contactRepository" and tracking/contactManager would not be support in Sitecore 9.x. I Would like to understand What is the replacement of the repository in Sitecore 9.x analytics.
Appreciated someone help to understand. Thanks in advance!!