T
T
Timofey2020-12-09 17:31:22
ASP.NET
Timofey, 2020-12-09 17:31:22

How to write the .net core 3.1 logic to save message data in the user database (signalR)?

Where and how to intercept user messages, I have a real-time chat and the ability to write in it if the user is authorized, how to save messages, I registered a model for messages and generated a database, but I don’t know how to catch and transfer there, my .cshtml I connected it with the model and the message field, I don’t understand the logic, I will be glad if someone has already solved similar problems and can somehow point to the correct logic of work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2020-12-09
@timofeygusevopal

In the signalr hub, you can write your own logic for saving messages to the database.
To show the user the history of messages - request data from the database.
New messages can be notified via signalr

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question