105040 增加注释

This commit is contained in:
lihanbo 2024-11-13 13:36:09 +08:00
parent 3024bb1d62
commit f726fa20d8
4 changed files with 6 additions and 12 deletions

View File

@ -253,6 +253,7 @@
<member name="M:LFlow.Base.Program.ConfigDllLoader">
<summary>
配置DLL加载器
接管DLL加载过程处理依赖问题从当前路径和Service文件夹中加载DLL
</summary>
</member>
<member name="T:LFlow.Base.Utils.ApiExplorerGroupPerVersionConvention">

View File

@ -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
/// </summary>
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
/// <summary>
/// 配置DLL加载器
/// 接管DLL加载过程处理依赖问题从当前路径和Service文件夹中加载DLL
/// </summary>
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)

View File

@ -2,7 +2,7 @@
"Urls": "http://*:8088;http://*:3453",
"Serilog": {
"MinimumLevel": {
"Default": "Debug",
"Default": "Information",
"Override": {
"Microsoft.AspNetCore.Mvc": "Debug",
"Microsoft.AspNetCore.Routing": "Debug",