Is there a way to get list of active users logged into a tenanat.
3 Answer(s)
-
0
From the documentation on SignalR AspNetCore Integration - Online Clients:
ASP<span></span>.NET Boilerplate provides the
IOnlineClientManagerto get information about online users (injectIOnlineClientManagerand useGetByUserIdOrNull,GetAllClients,IsOnlinemethods for example).Related
- Current number of active user CONNECTIONs: aspnetzero/aspnet-zero-core#1414
- Current number of active USERs: aspnetzero/aspnet-zero-core#1415
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
I injected IOnlineClientManager but didn't see GetByUserIdorNull rather it's GetAllByUserId. And there is no clear documentation on how to get the number of active users. Any help is appreciated.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
I injected IOnlineClientManager but didn't see GetByUserIdorNull rather it's GetAllByUserId.
That's correct, since a user can have more than one client connection. That line in the documentation is outdated.
And there is no clear documentation on how to get the number of active users.
GetAllClients, group byclient.UserIdand then count.Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)