ChatOnlineUserInfoProvider CleanOnlineUsers Method Kentico 8.0 API Reference
Cleans inactive (not pinging) users.

Namespace: CMS.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

inactiveForSeconds
Type: OnlineSystem Int32
Seconds of inactivity needed to clean user.
leaveSystemMessageFormat
Type: OnlineSystem String
Format of system message. Placeholder {nickname} will be replaced by actual user's nickname. If null system message won't be inserted.
leaveSystemMessageType
Type: CMS.Chat ChatMessageTypeEnum
Type of leave room system message (typically ChatMessageTypeEnum.LeaveRoom)

Return Value

Type: OnlineInt32
Number of cleaned users
See Also