Click or drag to resize
ICurrentContactProvider Interface
Service for recognizing and storing information about contact currently browsing the live site.

Namespace: CMS.OnlineMarketing
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 9.0.0
Syntax
C#
public interface ICurrentContactProvider

The ICurrentContactProvider type exposes the following members.

Methods
  NameDescription
Public methodGetCurrentContact
Recognizes contact currently browsing the live site. If 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). Contact can only be recognized during web request as RequestDependencies are required in request param.
Public methodSetCurrentContact
Stores information about the current contact into the current session, so next time (possibly in another request in the same session) GetCurrentContact(RequestDependencies, SiteInfo, CurrentUserInfo, Boolean) is called the stored contact is returned.
Top
See Also