C# project in visual studio 2019.
I have created a multi-threaded windows service that continuously monitors and issues commands to a serial port.
I am using the standard serialport component provided in VS 2019.
This service when started, opens the serial port and never closes it. The service can be running for months at a time.
Is this a bad practice ? Should I be closing the serial port and then reopening it periodically ?
Thoughts on this greatly appreciated.