c# – How to create a service providing data to local Intranet clients (on Windows)


I’m researching how to build a system of three to five PCs on peer-to-peer network. One of those PCs (the primary PC) will run SQL Server and receive requests for data from/provide data to the other PCs.

I intend to develop WCF service-like application (the servicer app) to be running on the primary PC, listening to requests. I prefer the servicer app to be based on .NET8 and up (not NET Framework) and be hosted in Windows Service.

My issues:

  1. Is this even a valid scenario? Can a Windows Service host .NET-based service DLL?
  2. I found Visual Studio 2022 project template “Worker Service”. How do I host it in Windows Service and open it to multiple clients?
  3. Is there any other technique? I read about Net.TCP Port Sharing, but it’s unclear if it can be used across multiple PCs.
  4. Is there any other Visual Studio project template to use?

Please point to the right information.

Thank you,

Eugene

Leave a Reply

Your email address will not be published. Required fields are marked *