Skip to content

Instantly share code, notes, and snippets.

@dnstommy
Created February 7, 2020 00:54
Show Gist options
  • Save dnstommy/905212188f51a062555a9f3a9d47d12a to your computer and use it in GitHub Desktop.
Save dnstommy/905212188f51a062555a9f3a9d47d12a to your computer and use it in GitHub Desktop.
var contactReference = this.contactIdentificationRepository.GetContactReference();
using (var client = this.contactIdentificationRepository.CreateContext())
{
var facetsToGet = new List<string>
{
AddressList.DefaultFacetKey,
EmailAddressList.DefaultFacetKey,
PhoneNumberList.DefaultFacetKey,
PersonalInformation.DefaultFacetKey
};
var contact = client.Get(contactReference, new ContactExpandOptions(facetsToGet.ToArray()));
if (contact != null)
{
/// facet work
client.Submit();
contactFacetsProvider.UpdateTracker();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment