AddSingleton and AddHostedService in WebAPI application
In my application I have some services to manage some devices on a PC (mainly via serial ports). Services will be accessed through API controllers.
In my application I have some services to manage some devices on a PC (mainly via serial ports). Services will be accessed through API controllers.