Open Closed

Amount of users logged by tenant #976


0
inovatech created

Hi, It is possible, if so how, get the amount of users logged by tenant ?


3 Answer(s)
  • 0
    ismcagdas created

    Hi,

    Would you like to get count of online users of a tenant ?

  • 0
    inovatech created

    That's it. I want to get this information to limit the number of simultaneous users connected to the system.

  • 0
    ismcagdas created

    Hi,

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

    _onlineClientManager.GetAllClients().Where(u=> u.TenantId == AbpSession.TenantId);
    

    I hope this helps.