Click or drag to resize
ChatIncrementalCacheWithCurrentStateWrapperTData, TPrimaryKey Class
This cache wrapper combines CurrentStateWrapper and ParametrizedCacheWrapper. Where parametrized cache wrapper takes only one argument - DateTime. This argument is automatically wrapped in IChatCacheableParam.
Inheritance Hierarchy
SystemObject
  CMS.ChatChatIncrementalCacheWithCurrentStateWrapperTData, TPrimaryKey

Namespace: CMS.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 8.2.23
Syntax
C#
public class ChatIncrementalCacheWithCurrentStateWrapper<TData, TPrimaryKey>
where TData : Object, IChatCacheableWithCurrentState<TPrimaryKey>

Type Parameters

TData
Type of data
TPrimaryKey
Type of primary key

The ChatIncrementalCacheWithCurrentStateWrapperTData, TPrimaryKey type exposes the following members.

Constructors
Methods
  NameDescription
Public methodForceGetItem
Tries to get item from CurrentState. If item wasn't found, current state is reloaded and then it tries again.
Public methodGetCurrentStateWithLastChange
Gets current state together with time of last change.
Public methodGetLatestData
Gets data from cache (if item in cache with key made from changedSince exists). Otherwise it gets items from fetchChangedDataFunc. This function returns only data changed after changedSince. Null is returned if nothing was found.
Public methodInvalidateCurrentState
Invalidates current state. Before next fetch of current state data (property CurrentState, method UpdateAndTryGetItem(), etc.) data will be reloaded from data source.
Public methodUpdateAndTryGetItem
Invalidates cache and then tries to get item.
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
Properties
  NameDescription
Public propertyCurrentState
Current state of items. It is not older than 'maxDelay'
Top
See Also