S
S
Sasha Pleshakov2016-11-04 19:15:28
ASP.NET
Sasha Pleshakov, 2016-11-04 19:15:28

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

1 answer(s)
D
Dasha Tsiklauri, 2016-11-04
@mnepoh

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 question

Ask a Question

731 491 924 answers to any question