GFramework/GFramework.Core/architecture/IArchitectureExtensible.cs
GeWuYou c1037c7fe2 refactor(architecture): 调整架构阶段访问权限并添加可扩展接口
- 将Architecture.CurrentPhase属性改为私有访问
- 新增IArchitectureExtensible接口提供模块安装和生命周期钩子注册功能
- 实现架构模块安装和生命周期钩子注册的扩展能力
- 优化架构的可扩展性和模块化设计
2025-12-23 13:23:37 +08:00

21 lines
650 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace GFramework.Core.architecture;
/// <summary>
/// 可扩展架构接口继承自IArchitecture接口提供模块安装和生命周期钩子注册功能
/// </summary>
public interface IArchitectureExtensible : IArchitecture
{
/// <summary>
/// 安装架构模块
/// </summary>
/// <param name="module">要安装的架构模块实例</param>
void InstallModule(IArchitectureModule module);
/// <summary>
/// 注册架构生命周期钩子
/// </summary>
/// <param name="hook">要注册的架构生命周期钩子实例</param>
void RegisterLifecycleHook(IArchitectureLifecycle hook);
}