Imtiaz
Data Retrieval in a SignalR Hub/Service?
I believe, for the concurrent dictionary, you don't need a lock object as it is thread safe.
Also, FirstOrDefault is fine, but make sure you register IConnectedClientsService as a singleton not scoped or transient.
9 replies
Material for learning how to build JWT/OAuth ASP.NET Web API
https://www.youtube.com/watch?v=ExQJljpj1lY&list=PLOeFnOV9YBa4yaz-uIi5T4ZW3QQGHJQXi
https://www.youtube.com/watch?v=Fhfvbl_KbWo&list=PLOeFnOV9YBa7dnrjpOG6lMpcyd7Wn7E8V
The best in town
4 replies
Optimizing Large i18n Loading in Blazor
I have previously worked on a similar where we loaded a JSON file on startup. Unfortunately, we could not find an efficient way to speed up this process. As a result, we established a rule that the JSON file should not exceed 2MB. I assume you are engaged in an insurance project.
14 replies
Jwt authorization returning 401 every time
Have you added the bearer token in swagger auth textbox? you have to configure swagger for that. So, when you get token, you have to put that token in the auth textbox, and then you need to hit the authorize endpoint. I am assuming that is the problem here.
4 replies
.net identity & new table
I think, you should watch the following tutroial on Auth in aspnet core. These videos are the best IMO on this topic. https://www.youtube.com/watch?v=Fhfvbl_KbWo&list=PLOeFnOV9YBa7dnrjpOG6lMpcyd7Wn7E8V
4 replies
Collections
In simple words, Dictionaries are built on top of Hash Table data structure, so this is a key, value pair collection. You have to define what kind of key,value pair you will store in the collection. While List, and Collection are built on top of Array.
14 replies
Razor Pages Authentication issues
I would strongly suggest checking out "Raw Coding" channel. You will learn so much about authentication. Here is the playlist link https://www.youtube.com/watch?v=ExQJljpj1lY&list=PLOeFnOV9YBa4yaz-uIi5T4ZW3QQGHJQXi
3 replies