Interface IContactPersistentStorage
- Namespace
- CMS.ContactManagement
- Assembly
- CMS.ContactManagement.dll
Provides methods for storing and retrieving contact from/to persistent storage. Persistent storage is a place where contact can be stored and after the same contact makes another request, it will be returned.
public interface IContactPersistentStorage- Extension Methods
Methods
GetPersistentContact()
Gets contact from the persistent storage.
ContactInfo GetPersistentContact()Returns
- ContactInfo
- Contact retrieved from the persistent storage 
Examples
Following example shows how to use GetPersistentContact method
...
IContactPersistentStorage contactPersistentStorage = someImplementation;
// Returns contact from the persistent storage
contactPersistentStorage.GetPersistentContact();
...Remarks
In default implementation, cookie will be used as persistent storage for the contacts.
SetPersistentContact(ContactInfo)
Sets given contact to the persistent storage.
void SetPersistentContact(ContactInfo contact)Parameters
- contactContactInfo
- Contact to be set 
Examples
Following example shows how to use SetPersistentContact method
...
IContactPersistentStorage contactPersistentStorage = someImplementation;
// Stores given 'contact'  to the persistent storage
contactPersistentStorage.SetPersistentContact(contact);
...
...
// In another request
// Returns the same contact that was set earlier with SetPersistentContact method
contactPersistentStorage.GetPersistentContact();Remarks
In default implementation, cookie will be used as persistent storage for the contacts.