Init - 初始化仓库

master
Wen JY 10 months ago
parent 052661b951
commit 84664f7f0a

@ -14,10 +14,12 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\SlnMesnac.Config\SlnMesnac.Config.csproj" /> <ProjectReference Include="..\SlnMesnac.Config\SlnMesnac.Config.csproj" />
<ProjectReference Include="..\SlnMesnac.Model\SlnMesnac.Model.csproj" /> <ProjectReference Include="..\SlnMesnac.Model\SlnMesnac.Model.csproj" />
<ProjectReference Include="..\SlnMesnac.Mqtt\SlnMesnac.Mqtt.csproj" />
<ProjectReference Include="..\SlnMesnac.Plc\SlnMesnac.Plc.csproj" /> <ProjectReference Include="..\SlnMesnac.Plc\SlnMesnac.Plc.csproj" />
<ProjectReference Include="..\SlnMesnac.Quartz\SlnMesnac.Quartz.csproj" /> <ProjectReference Include="..\SlnMesnac.Quartz\SlnMesnac.Quartz.csproj" />
<ProjectReference Include="..\SlnMesnac.Repository\SlnMesnac.Repository.csproj" /> <ProjectReference Include="..\SlnMesnac.Repository\SlnMesnac.Repository.csproj" />
<ProjectReference Include="..\SlnMesnac.Serilog\SlnMesnac.Serilog.csproj" /> <ProjectReference Include="..\SlnMesnac.Serilog\SlnMesnac.Serilog.csproj" />
<ProjectReference Include="..\SlnMesnac.TouchSocket\SlnMesnac.TouchSocket.csproj" />
</ItemGroup> </ItemGroup>
</Project> </Project>

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

Loading…
Cancel
Save