Mojtabarezaei4 / Queueomatic

A queue system that can be used for educational purposes or for any other situations where prioritization of individuals is necessary.
https://queueomatic.azurewebsites.net/
MIT License
7 stars 2 forks source link

Migrate SignalR methods to interfaces #142

Closed Mojtabarezaei4 closed 7 months ago

Mojtabarezaei4 commented 1 year ago

Currently all signalR methods rely on string based method invocation. This is not ideal since it is easy to accidentally invoke the wrong method or even no method at all.

This should be changed to an interface based method invocation where each interface corresponds to a method in the backend and if possible in the frontend. Check the link below for an example.

FabianAronsson commented 10 months ago

https://learn.microsoft.com/en-us/aspnet/core/signalr/hubs?view=aspnetcore-7.0#strongly-typed-hubs