Answer the question
In order to leave comments, you need to log in
How to organize the work of SignalR if there are two types of users?
One user is authorized, there is data in the database and there is a name. The other one is not authorized and only has a ConnectionId. I found on the site asp.net information on how to work with users whose information is in the database, but what if there are more users in the static list?
Answer the question
In order to leave comments, you need to log in
SignalR is just a message passing mechanism, all business logic falls on your shoulders: you start a dictionary key - connectionId, value - user object, there you already store info whether it is authorized or not, roles, last call, state and whatever
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question