mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
- 在 ArchitectureServices 中添加 SetContext 和 GetContext 方法 - 为 IArchitectureServices 接口添加 IContextAware 继承 - 在架构初始化过程中设置服务上下文 - 将事件系统的 GetEvent 方法替换为 GetOrAddEvent 方法 - 重构测试类添加测试装置和拆卸逻辑 - 为测试类添加 NonParallelizable 特性确保测试隔离
23 lines
724 B
C#
23 lines
724 B
C#
using GFramework.Core.Abstractions.events;
|
|
using GFramework.Core.Abstractions.ioc;
|
|
using GFramework.Core.Abstractions.rule;
|
|
|
|
namespace GFramework.Core.Abstractions.architecture;
|
|
|
|
/// <summary>
|
|
/// 架构服务接口,定义了框架核心架构所需的服务组件
|
|
/// </summary>
|
|
public interface IArchitectureServices : IContextAware
|
|
{
|
|
/// <summary>
|
|
/// 获取依赖注入容器
|
|
/// </summary>
|
|
/// <returns>IIocContainer类型的依赖注入容器实例</returns>
|
|
IIocContainer Container { get; }
|
|
|
|
/// <summary>
|
|
/// 获取类型事件系统
|
|
/// </summary>
|
|
/// <returns>ITypeEventSystem类型的事件系统实例</returns>
|
|
ITypeEventSystem TypeEventSystem { get; }
|
|
} |