diff --git a/src/EasilyNET.AutoDependencyInjection.Core/EasilyNET.AutoDependencyInjection.Core.csproj b/src/EasilyNET.AutoDependencyInjection.Core/EasilyNET.AutoDependencyInjection.Core.csproj
index bb64daa1..5f24b04b 100644
--- a/src/EasilyNET.AutoDependencyInjection.Core/EasilyNET.AutoDependencyInjection.Core.csproj
+++ b/src/EasilyNET.AutoDependencyInjection.Core/EasilyNET.AutoDependencyInjection.Core.csproj
@@ -12,7 +12,7 @@
https://www.nuget.org/packages/EasilyNET.AutoDependencyInjection.Core
- 自动注入和属性注入以及模块化核心库
+ 自动注入以及模块化核心库
diff --git a/src/EasilyNET.AutoDependencyInjection/ServiceCollectionExtension.cs b/src/EasilyNET.AutoDependencyInjection/ServiceCollectionExtension.cs
index e5661bc2..e0a1cc58 100644
--- a/src/EasilyNET.AutoDependencyInjection/ServiceCollectionExtension.cs
+++ b/src/EasilyNET.AutoDependencyInjection/ServiceCollectionExtension.cs
@@ -38,14 +38,14 @@ public static IServiceCollection AddApplicationModules(this IServiceCollectio
///
/// 初始化应用,配置中间件
///
- ///
+ ///
///
- public static IHost InitializeApplication(this IHost builder)
+ public static IHost InitializeApplication(this IHost host)
{
- builder.Services.GetRequiredService>().Value = builder;
- var runner = builder.Services.GetRequiredService();
+ host.Services.GetRequiredService>().Value = host;
+ var runner = host.Services.GetRequiredService();
runner.Initialize();
- return builder;
+ return host;
}
///
diff --git a/src/EasilyNET.Core/Misc/AssemblyHelper.cs b/src/EasilyNET.Core/Misc/AssemblyHelper.cs
index 593e21ae..9f79aecb 100644
--- a/src/EasilyNET.Core/Misc/AssemblyHelper.cs
+++ b/src/EasilyNET.Core/Misc/AssemblyHelper.cs
@@ -1,6 +1,6 @@
-using Microsoft.Extensions.DependencyModel;
using System.Reflection;
using System.Runtime.Loader;
+using Microsoft.Extensions.DependencyModel;
// ReSharper disable MemberCanBePrivate.Global
// ReSharper disable UnusedMember.Global
@@ -13,14 +13,14 @@ namespace EasilyNET.Core.Misc;
// ReSharper disable once UnusedType.Global
public static class AssemblyHelper
{
- private static readonly string[] Filters = ["dotnet-", "Microsoft.", "mscorlib", "netstandard", "System", "Windows"];
+ private static readonly HashSet Filters = ["dotnet-", "Microsoft.", "mscorlib", "netstandard", "System", "Windows"];
private static readonly IEnumerable? _allAssemblies;
private static readonly IEnumerable? _allTypes;
///
/// 需要排除的项目
///
- private static readonly List FilterLibs = [];
+ private static readonly HashSet FilterLibs = [];
///
/// 构造函数