Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Counter to see no of users visited #4791


User avatar
0
avanekar02 created

Do you have a functionality to track total users visited site as out of the box functionality.

Regards Anwar


1 Answer(s)
  • User Avatar
    0
    alper created
    Support Team

    You can use IOnlineClientManager Inject IOnlineClientManager in your class and then you can get online users of current tenant like this,

    int onlineUsersCount = _onlineClientManager.GetAllClients().Count;
    

    Read the following doc; <a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/SignalR-Integration#online-clients">https://aspnetboilerplate.com/Pages/Doc ... ne-clients</a>