From 84664f7f0af621f96aa05173250a5d337cf2d730 Mon Sep 17 00:00:00 2001 From: Wen JY Date: Thu, 18 Jan 2024 15:31:49 +0800 Subject: [PATCH] =?UTF-8?q?Init=20-=20=E5=88=9D=E5=A7=8B=E5=8C=96=E4=BB=93?= =?UTF-8?q?=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SlnMesnac/SlnMesnac.csproj | 2 ++ SlnMesnac/Startup.cs | 17 +++++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/SlnMesnac/SlnMesnac.csproj b/SlnMesnac/SlnMesnac.csproj index f623be7..df28f9a 100644 --- a/SlnMesnac/SlnMesnac.csproj +++ b/SlnMesnac/SlnMesnac.csproj @@ -14,10 +14,12 @@ + + diff --git a/SlnMesnac/Startup.cs b/SlnMesnac/Startup.cs index 07f9445..9d0a9dd 100644 --- a/SlnMesnac/Startup.cs +++ b/SlnMesnac/Startup.cs @@ -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(); } ///