From 01b55874fc4dc780ac987c4e85930bc446b5c52f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E9=9B=B7?= <284428564@QQ.com> Date: Tue, 21 May 2024 17:45:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TelpoPush.Position.Worker/Program.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/TelpoPush.Position.Worker/Program.cs b/TelpoPush.Position.Worker/Program.cs index f1e32cf..4309531 100644 --- a/TelpoPush.Position.Worker/Program.cs +++ b/TelpoPush.Position.Worker/Program.cs @@ -6,6 +6,7 @@ using TelpoDataService.Util.Clients; using TelpoPush.Position.Worker; using TelpoPush.Position.Worker.Common; using TelpoPush.Position.Worker.Handlers; +using TelpoPush.Position.Worker.Models.Config; using TelpoPush.Position.Worker.Service.Cache; using TelpoPush.Position.Worker.Service.Mq; @@ -62,9 +63,9 @@ try var builder = Host.CreateApplicationBuilder(args); var config = builder.Configuration; - //builder.Services.Configure(config.GetSection("PositionConfig")); - //builder.Services.Configure(config.GetSection("ServiceConfig")); - //builder.Services.Configure(config.GetSection("Redis")); + builder.Services.Configure(config.GetSection("PositionConfig")); + builder.Services.Configure(config.GetSection("ServiceConfig")); + builder.Services.Configure(config.GetSection("Redis")); JsonSerializerSettings setting = new JsonSerializerSettings(); JsonConvert.DefaultSettings = () =>