I have .Net Core server application with database that install locally on PC station. Now I need to develop mobile application that would connect to PC station and retrieve live reports based on database data.
Because PC station is placed under NAT with dynamic IP I cannot call API directly from mobile or via cloud with http request. I decided that Azure SignalR Service would be very helpful for such task.
I want to establish signalr connection MobileApp <---> Azure SignalR Core <---> Local PC API. Mobile sends request to the cloud and it transmit to PC API. For PC API I'm going to use BackgroundService to keep connection alive. Is it good workaround? Should I use HubConnectionBuilder in BackgroundService and create infinite loop? Where can I find how to use Signalr Client in BackgroundService?