iioter / iotgateway

A cross-platform IoT gateway based on .net6. Through visual configuration, you can easily connect to any of your devices and systems (such as PLC, barcode scanner, CNC, database, serial device, host computer, OPC Server, OPC UA Server, Mqtt Server, etc.), so as to interact with Thingsboard, IoTSharp or Your own IoT platform for two-way data communication. Provide a simple driver development interface; of course, edge computing can also be performed.
http://iotgateway.net/docs/enterprise/intro/
MIT License
826 stars 246 forks source link

优化系统启动速度 #46

Closed jimojiangdahu closed 9 months ago

jimojiangdahu commented 9 months ago

不要把DeviceService和ModbusSlaveService放在StartUp类的Configure方法参数里面,当系统内设备数量多的时候, 依赖注入对这两个service的构造函数的执行,会拖慢程序的启动

应该放在项目启动完成事件中,作为事件回调来执行