ICurrentContactProvider Interface |
Namespace: CMS.ContactManagement
public interface ICurrentContactProvider
The ICurrentContactProvider type exposes the following members.
Name | Description | |
---|---|---|
GetCurrentContact |
Recognizes a contact currently browsing the live site. If the contact cannot be recognized a new one is created. A returned contact is always
valid (exists in database, is not merged, etc.) and is automatically assigned to currentUser User (if it's not a public
user).
| |
GetExistingContact |
Gets a contact assigned to the visitor currently browsing the live site (contact can only be recognized during web request).
A returned contact is always valid (exists in database, is not merged, etc.) and is automatically assigned to currentUser (if it's not a public user).
If no contact is currently assigned to the visitor null is returned.
| |
SetCurrentContact |
Stores information about the current contact into the persistent storage (IContactPersistentStorage), so that the next time
(possibly in another request in the same session) GetCurrentContact(IUserInfo, Boolean) is called, the stored contact is returned.
|