|
|
|
@ -1,13 +1,12 @@
|
|
|
|
|
using Microsoft.OpenApi.Models;
|
|
|
|
|
using Serilog;
|
|
|
|
|
using Serilog.Events;
|
|
|
|
|
using SlnMesnac.Common;
|
|
|
|
|
using SlnMesnac.Config;
|
|
|
|
|
using SlnMesnac.Plc;
|
|
|
|
|
using SlnMesnac.Plc.Impl;
|
|
|
|
|
using SlnMesnac.Quartz;
|
|
|
|
|
using SlnMesnac.Repository;
|
|
|
|
|
using SlnMesnac.Serilog;
|
|
|
|
|
using SlnMesnac.Mqtt;
|
|
|
|
|
using SlnMesnac.TouchSocket;
|
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace SlnMesnac
|
|
|
|
@ -78,17 +77,23 @@ namespace SlnMesnac
|
|
|
|
|
//注册通用类
|
|
|
|
|
services.AddCommonSetup();
|
|
|
|
|
|
|
|
|
|
//注册SqlSugar
|
|
|
|
|
//注册ORM
|
|
|
|
|
services.AddSqlSugarSetup();
|
|
|
|
|
|
|
|
|
|
//注册服务
|
|
|
|
|
//注册Service
|
|
|
|
|
services.AddServices();
|
|
|
|
|
|
|
|
|
|
//注册任务调度
|
|
|
|
|
//注册Quartz
|
|
|
|
|
services.AddQuartzSetUp();
|
|
|
|
|
|
|
|
|
|
//注册PLC
|
|
|
|
|
services.AddPlcSetup();
|
|
|
|
|
|
|
|
|
|
//注册MQTT
|
|
|
|
|
services.AddMqttSetup();
|
|
|
|
|
|
|
|
|
|
//注册TouchSocket
|
|
|
|
|
services.AddTouchSocketSetup();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|