Skip to content

Commit

Permalink
chore : global using
Browse files Browse the repository at this point in the history
  • Loading branch information
wzh425 committed Jun 30, 2023
1 parent f67bf40 commit 8e836e6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/Services/Masa.Mc.Service/Jobs/MessageTaskExecuteJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions src/Services/Masa.Mc.Service/Program.cs
Original file line number Diff line number Diff line change
@@ -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();
Expand Down

0 comments on commit 8e836e6

Please sign in to comment.