GFramework/GFramework.Core/utility/IContextUtility.cs
GeWuYou 485b2a11fe feat(utility): 添加抽象上下文工具类和接口
- 创建了 AbstractContextUtility 抽象类,继承 ContextAwareBase 并实现 IContextUtility 接口
- 实现了 IContextUtility 接口,提供上下文相关的通用功能
- 添加了 Init 方法用于初始化上下文工具,包含日志记录功能
- 提供了抽象 OnInit 方法供子类实现具体初始化逻辑
- 定义了 IContextUtility 接口,继承 IUtility 和 IContextAware 接口
- 添加了上下文感知能力的工具功能支持
2025-12-25 08:34:46 +08:00

17 lines
366 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.

using GFramework.Core.rule;
namespace GFramework.Core.utility;
/// <summary>
/// 上下文工具接口继承自IUtility和IContextAware接口
/// 提供具有上下文感知能力的工具功能
/// </summary>
public interface IContextUtility:IUtility,IContextAware
{
/// <summary>
/// 初始化上下文工具
/// </summary>
void Init();
}