Skip to content
This repository was archived by the owner on May 27, 2026. It is now read-only.

Commit 06a8dbc

Browse files
committed
[Milky] Change some namespace
1 parent fe798d5 commit 06a8dbc

4 files changed

Lines changed: 7 additions & 11 deletions

File tree

Lagrange.Milky/Service/Core/CoreLoggerService.cs renamed to Lagrange.Milky/Core/CoreLoggerService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
using CoreLogLevel = Lagrange.Core.Events.EventArgs.LogLevel;
1010
using MSLogLevel = Microsoft.Extensions.Logging.LogLevel;
1111

12-
namespace Lagrange.Milky.Core.Service.Core;
12+
namespace Lagrange.Milky.Core;
1313

1414
public partial class CoreLoggerService(ILogger<CoreLoggerService> logger, IOptionsMonitor<LoggerFilterOptions> loggerOptions, ILoggerFactory loggerFactory, BotContext bot) : IHostedService, IDisposable
1515
{

Lagrange.Milky/Service/Core/CoreLoginService.cs renamed to Lagrange.Milky/Core/CoreLoginService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
using static Lagrange.Core.Events.EventArgs.BotQrCodeQueryEvent;
1111
using MSLogLevel = Microsoft.Extensions.Logging.LogLevel;
1212

13-
namespace Lagrange.Milky.Core.Service;
13+
namespace Lagrange.Milky.Core;
1414

1515
public class CoreLoginService(ILogger<CoreLoginService> logger, IOptions<CoreConfiguration> options, IHost host, BotContext bot, ICaptchaResolver captchaResolver) : IHostedService
1616
{

Lagrange.Milky/Extension/HostApplicationBuilderExtension.cs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
using Lagrange.Milky.Api;
55
using Lagrange.Milky.Cache;
66
using Lagrange.Milky.Configuration;
7-
using Lagrange.Milky.Core.Service;
8-
using Lagrange.Milky.Core.Service.Core;
7+
using Lagrange.Milky.Core;
98
using Lagrange.Milky.Event;
109
using Lagrange.Milky.Utility;
1110
using Lagrange.Milky.Utility.CaptchaResolver;
@@ -113,14 +112,12 @@ public static HostApplicationBuilder ConfigureCore(this HostApplicationBuilder b
113112
: ActivatorUtilities.CreateInstance<ManualCaptchaResolver>(services);
114113
})
115114

116-
// CoreLoggerService
115+
// Logger
117116
.AddHostedService<CoreLoggerService>()
118-
);
119117

120-
public static HostApplicationBuilder ConfigureCoreLogin(this HostApplicationBuilder builder) => builder
121-
.ConfigureServices(services => services
122-
.AddHostedService<CoreLoginService>()
123-
);
118+
// Login
119+
.AddHostedService<CoreLoginService>()
120+
);
124121

125122
public static HostApplicationBuilder ConfigureMilky(this HostApplicationBuilder builder) => builder
126123
.ConfigureServices(services => services

Lagrange.Milky/Program.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ await Host.CreateApplicationBuilder(args)
2222
)
2323
.ConfigureCore()
2424
.ConfigureMilky()
25-
.ConfigureCoreLogin()
2625
.Build()
2726
.RunAsync();
2827
}

0 commit comments

Comments
 (0)