mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 19:03:29 +08:00
- 移除架构中的命令和查询执行方法,将业务操作委托给 ArchitectureRuntime - 引入 ArchitectureContext 类统一管理组件访问和事件处理 - 创建 ArchitectureRuntime 类作为统一的命令、查询、事件操作入口 - 更新架构生命周期管理,添加对 IArchitectureLifecycle 的支持 - 重命名 DefaultArchitectureConfiguration 为 ArchitectureConfiguration - 重命名 DefaultArchitectureServices 为 ArchitectureServices - 删除旧的 DefaultArchitectureContext 类 - 更新查询接口实现,使用 ContextAwareBase 基类 - 修改系统和模型注册逻辑,使用上下文而非架构实例 - 重构事件发送机制,统一使用 TypeEventSystem - [no tag]
29 lines
880 B
C#
29 lines
880 B
C#
using GFramework.Core.logging;
|
||
|
||
namespace GFramework.Core.architecture;
|
||
|
||
/// <summary>
|
||
/// 默认架构配置类,实现IArchitectureConfiguration接口
|
||
/// 提供日志工厂、日志级别和架构选项的默认配置
|
||
/// </summary>
|
||
public class ArchitectureConfiguration: IArchitectureConfiguration
|
||
{
|
||
/// <summary>
|
||
/// 获取或设置日志工厂实例
|
||
/// 默认使用控制台日志工厂
|
||
/// </summary>
|
||
public ILoggerFactory LoggerFactory { get; set; } = new ConsoleLoggerFactory();
|
||
|
||
/// <summary>
|
||
/// 获取或设置日志级别
|
||
/// 默认设置为Info级别
|
||
/// </summary>
|
||
public LogLevel LogLevel { get; set; } = LogLevel.Info;
|
||
|
||
/// <summary>
|
||
/// 获取或设置架构选项
|
||
/// 默认创建新的ArchitectureOptions实例
|
||
/// </summary>
|
||
public ArchitectureOptions Options { get; set; } = new();
|
||
}
|