ChatOnlineUserInfoProviderCleanOnlineUsers Method |
Cleans inactive (not pinging) users.
Namespace: CMS.ChatAssembly: CMS.Chat (in CMS.Chat.dll) Version: 10.0.0
Syntax public static int CleanOnlineUsers(
int inactiveForSeconds,
string leaveSystemMessageFormat,
ChatMessageTypeEnum leaveSystemMessageType
)
Parameters
- inactiveForSeconds
- Type: SystemInt32
Seconds of inactivity needed to clean user. - leaveSystemMessageFormat
- Type: SystemString
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.ChatChatMessageTypeEnum
Type of leave room system message (typically ChatMessageTypeEnum.LeaveRoom)
Return Value
Type:
Int32Number of cleaned users
See Also