Marco Morgia

Marco Morgia

  • 1.6k
  • 64
  • 1k

Read COM from ASP.NET (Framework 4.5) WebApi

Apr 8 2024 8:32 AM

Good morning everyone,

I created a WebApi application (Framework 4.5) that exposes web services through which desktop clients request data.

On the server side (where the WebApi is present) the devices are queried via the serial port (on separate threads) and update the data which the client will then request.

I wanted some advice from you on what is the best technique for reading serial ports from a web application without the WebApi being blocked.

At the moment for each device whose data I have to read I create a new thread and everything works quite well, but I would like to know (also perhaps with your past experiences) if there are better techniques.

Thank you


Answers (3)