Click or drag to resize
ChatCacheBeacon Class
This class uses cache to control timeouts of other cached items. It does not store any data itself. It allows to invalidate caches across web farms (that's the reason why cache is used here - touching cache is propagated across web farms) or only locally.
Inheritance Hierarchy
SystemObject
  CMS.ChatChatCacheBeacon

Namespace: CMS.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 8.2.23
Syntax
C#
public class ChatCacheBeacon

The ChatCacheBeacon type exposes the following members.

Constructors
  NameDescription
Public methodChatCacheBeacon
Constructs cache beacon. First call to IsValid method will return false.
Top
Methods
  NameDescription
Public methodInvalidate
Invalidates beacon - next call of IsValid will return false. This invalidation works across web farms.
Public methodInvalidateLocally
Invalidates beacon - next call of IsValid will return false. This invalidation works only locally.
Public methodIsValid
Checks if beacon is valid. It takes into consideration local and cache invalidation. If beacon is not valid, it calls Reset itself, so next call will return true again. First call to this method will return false. Method is thread safe.
Public methodReset
Resets timeout, so next time IsValid() will return false again after amount of time specified by persistence argument
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
See Also