diff --git a/GFramework.Core.Abstractions/architecture/IArchitecture.cs b/GFramework.Core.Abstractions/architecture/IArchitecture.cs index c81f070..9f1a37e 100644 --- a/GFramework.Core.Abstractions/architecture/IArchitecture.cs +++ b/GFramework.Core.Abstractions/architecture/IArchitecture.cs @@ -36,6 +36,7 @@ public interface IArchitecture : IAsyncInitializable /// /// 系统类型,必须实现ISystem接口 /// 要注册的系统实例 + /// 注册的系统实例 T RegisterSystem(T system) where T : ISystem; /// @@ -43,6 +44,7 @@ public interface IArchitecture : IAsyncInitializable /// /// 模型类型,必须实现IModel接口 /// 要注册的模型实例 + /// 注册的模型实例 T RegisterModel(T model) where T : IModel; /// @@ -50,6 +52,7 @@ public interface IArchitecture : IAsyncInitializable /// /// 工具类型,必须实现IUtility接口 /// 要注册的工具实例 + /// 注册的工具实例 T RegisterUtility(T utility) where T : IUtility; /// @@ -65,4 +68,10 @@ public interface IArchitecture : IAsyncInitializable /// 生命周期钩子实例 /// 注册的钩子实例 IArchitectureLifecycle RegisterLifecycleHook(IArchitectureLifecycle hook); + + /// + /// 等待直到架构准备就绪的异步操作 + /// + /// 表示异步等待操作的任务 + Task WaitUntilReadyAsync(); } \ No newline at end of file