Exemplo n.º 1
0
 private static void AddListSubscription(Guid listId, IXdbContext client, Contact contact)
 {
     if (listId != Guid.Empty)
     {
         client.SetListSubscriptions(contact, new ListSubscriptions()
         {
             Subscriptions = new List <ContactListSubscription>()
             {
                 // 9.1 only
                 //new ContactListSubscription(DateTime.UtcNow, true, listId)
                 //{
                 //    SourceDefinitionId = KnownIdentifiers.EmailExperienceManagerSubscriptionId
                 //}
             }
         });
     }
 }