From 8e836e60a50e46cca45edf5bcdfc5d1b0083aa5f Mon Sep 17 00:00:00 2001 From: wzh425 Date: Fri, 30 Jun 2023 08:53:05 +0800 Subject: [PATCH] chore : global using --- src/Services/Masa.Mc.Service/Jobs/MessageTaskExecuteJob.cs | 2 +- src/Services/Masa.Mc.Service/Program.cs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Services/Masa.Mc.Service/Jobs/MessageTaskExecuteJob.cs b/src/Services/Masa.Mc.Service/Jobs/MessageTaskExecuteJob.cs index 0ccc64a1..57fe6be8 100644 --- a/src/Services/Masa.Mc.Service/Jobs/MessageTaskExecuteJob.cs +++ b/src/Services/Masa.Mc.Service/Jobs/MessageTaskExecuteJob.cs @@ -33,7 +33,7 @@ public class MessageTaskExecuteJob : SchedulerJob //{ // configurationBuilder.UseDcc(); //}); - await builder.Services.AddMasaStackConfigAsync(MasaStackProject.MC, MasaStackApp.Service, true); + await builder.Services.AddMasaStackConfigAsync(MasaStackProject.MC, MasaStackApp.Service); var masaStackConfig = builder.Services.GetMasaStackConfig(); var configuration = builder.Services.GetMasaConfiguration().ConfigurationApi.GetDefault(); var redisOptions = new RedisConfigurationOptions diff --git a/src/Services/Masa.Mc.Service/Program.cs b/src/Services/Masa.Mc.Service/Program.cs index 8963b70a..ed16f03a 100644 --- a/src/Services/Masa.Mc.Service/Program.cs +++ b/src/Services/Masa.Mc.Service/Program.cs @@ -1,8 +1,6 @@ // Copyright (c) MASA Stack All rights reserved. // Licensed under the Apache License. See LICENSE.txt in the project root for license information. -using Microsoft.Extensions.DependencyInjection; - var builder = WebApplication.CreateBuilder(args); ValidatorOptions.Global.LanguageManager = new MasaLanguageManager();