diff --git a/LFlow.Base/Base.xml b/LFlow.Base/Base.xml
index 28e9a03..a65d9c5 100644
--- a/LFlow.Base/Base.xml
+++ b/LFlow.Base/Base.xml
@@ -253,6 +253,7 @@
配置DLL加载器
+ 接管DLL加载过程,处理依赖问题,从当前路径和Service文件夹中加载DLL
diff --git a/LFlow.Base/Program.cs b/LFlow.Base/Program.cs
index 8608297..cc362c9 100644
--- a/LFlow.Base/Program.cs
+++ b/LFlow.Base/Program.cs
@@ -124,15 +124,6 @@ public static class Program
.AllowAnyHeader();
});
});
-
- //// 使用Serilog,此处为了修复 `The logger is already frozen` 的问题,重新配置Serilog
- //builder.Host.UseSerilog((context, services, config) =>
- //{
- // config.ReadFrom.Configuration(context.Configuration)
- // .ReadFrom.Services(services)
- // .Enrich.FromLogContext();
- // // .WriteTo.Console();
- //}, true);
builder.Host.UseSerilog(Log.Logger);
// 注册中间件
builder.Services.RegisterMiddlewares(App.SubServiceAssembly);
@@ -236,6 +227,7 @@ public static class Program
///
public static void LoadSubService(this IServiceCollection services)
{
+ //TODO: 从配置文件中读取加载路径
var path = Path.Combine(AppContext.BaseDirectory, "Services");
// Console.WriteLine(path);
var files = Directory.GetFiles(path, "*.dll");
@@ -294,6 +286,7 @@ public static class Program
///
/// 配置DLL加载器
+ /// 接管DLL加载过程,处理依赖问题,从当前路径和Service文件夹中加载DLL
///
public static void ConfigDllLoader()
{
@@ -301,7 +294,7 @@ public static class Program
{
var assemblyName = new AssemblyName(args.Name);
- // 判断是否已经被加载
+ // 判断是否已经被加载 避免重复加载
var loadedAssembly = AppDomain.CurrentDomain.GetAssemblies()
.FirstOrDefault(a => a.FullName == assemblyName.FullName);
if (loadedAssembly != null)
diff --git a/LFlow.Base/appsettings.json b/LFlow.Base/appsettings.json
index ae5d785..ca568c4 100644
--- a/LFlow.Base/appsettings.json
+++ b/LFlow.Base/appsettings.json
@@ -2,7 +2,7 @@
"Urls": "http://*:8088;http://*:3453",
"Serilog": {
"MinimumLevel": {
- "Default": "Debug",
+ "Default": "Information",
"Override": {
"Microsoft.AspNetCore.Mvc": "Debug",
"Microsoft.AspNetCore.Routing": "Debug",
diff --git a/LFlow.UserManagement/UserMiddleware.cs b/LFlow.UserManagement/UserMiddleware.cs
index c0acb04..5dd34e0 100644
--- a/LFlow.UserManagement/UserMiddleware.cs
+++ b/LFlow.UserManagement/UserMiddleware.cs
@@ -28,7 +28,7 @@ namespace LFlow.UserManagement
// var progController = context.GetRouteData()?.Values["controller"]?.ToString();
// var progAction = context.GetRouteData()?.Values["action"]?.ToString();
// if (progAction != "ListAll")
- await next();
+ await next();
// else
// {
// await context.Response.WriteAsync(JsonConvert.SerializeObject(ApiResult