Click or drag to resize
CurrentContactProviderContextDecorator Class
Decorates the implementation of ICurrentContactProvider given in constructor to perform CanProcessContactInCurrentContext check before invoking every method.
Inheritance Hierarchy
SystemObject
  CMS.ContactManagementCurrentContactProviderContextDecorator

Namespace: CMS.ContactManagement
Assembly: CMS.ContactManagement (in CMS.ContactManagement.dll) Version: 11.0.0
Syntax
C#
public class CurrentContactProviderContextDecorator : ICurrentContactProvider

The CurrentContactProviderContextDecorator type exposes the following members.

Constructors
  NameDescription
Public methodCurrentContactProviderContextDecorator
Instantiates new instance of CurrentContactProviderContextDecorator.
Top
Methods
  NameDescription
Public methodGetCurrentContact
Checks whether processing of contact can continue. If so, 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).
Public methodGetExistingContact
Checks whether processing of contact can continue. If so, 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.
Public methodSetCurrentContact
Checks whether processing of contact can continue. If so, 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.
Top
See Also