From c401d63a05603f0b332de1ddf850f30a26bc0b85 Mon Sep 17 00:00:00 2001
From: GeWuYou <95328647+GeWuYou@users.noreply.github.com>
Date: Mon, 23 Feb 2026 13:41:31 +0800
Subject: [PATCH] =?UTF-8?q?docs(IServiceModuleManager):=20=E4=B8=BA?=
=?UTF-8?q?=E6=9C=8D=E5=8A=A1=E6=A8=A1=E5=9D=97=E7=AE=A1=E7=90=86=E5=99=A8?=
=?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=B7=BB=E5=8A=A0=E5=AE=8C=E6=95=B4=E6=96=87?=
=?UTF-8?q?=E6=A1=A3=E6=B3=A8=E9=87=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 为接口添加总体功能描述注释
- 为RegisterModule方法添加参数说明注释
- 为RegisterBuiltInModules方法添加容器和属性参数说明注释
- 为GetModules方法添加返回值说明注释
- 为InitializeAllAsync方法添加异步模式参数和返回值说明注释
- 为DestroyAllAsync方法添加返回值说明注释
---
.../architecture/IServiceModuleManager.cs | 25 +++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/GFramework.Core.Abstractions/architecture/IServiceModuleManager.cs b/GFramework.Core.Abstractions/architecture/IServiceModuleManager.cs
index b86b26e..20b7d52 100644
--- a/GFramework.Core.Abstractions/architecture/IServiceModuleManager.cs
+++ b/GFramework.Core.Abstractions/architecture/IServiceModuleManager.cs
@@ -3,15 +3,40 @@ using GFramework.Core.Abstractions.properties;
namespace GFramework.Core.Abstractions.architecture;
+///
+/// 服务模块管理器接口,用于管理架构中的服务模块。
+///
public interface IServiceModuleManager
{
+ ///
+ /// 注册一个服务模块。
+ ///
+ /// 要注册的服务模块实例。
void RegisterModule(IServiceModule module);
+ ///
+ /// 注册内置的服务模块。
+ ///
+ /// IoC容器实例,用于解析依赖。
+ /// 架构属性配置,用于模块初始化。
void RegisterBuiltInModules(IIocContainer container, ArchitectureProperties properties);
+ ///
+ /// 获取所有已注册的服务模块。
+ ///
+ /// 只读的服务模块列表。
IReadOnlyList GetModules();
+ ///
+ /// 异步初始化所有已注册的服务模块。
+ ///
+ /// 是否以异步模式初始化模块。
+ /// 表示异步操作的任务。
Task InitializeAllAsync(bool asyncMode);
+ ///
+ /// 异步销毁所有已注册的服务模块。
+ ///
+ /// 表示异步操作的值任务。
ValueTask DestroyAllAsync();
}
\ No newline at end of file