live-forum/server/webapi/LiveForum/LiveForum.IService/Others/IWechatApiClientManager.cs
2026-03-24 11:27:37 +08:00

36 lines
988 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 SKIT.FlurlHttpClient.Wechat.Api;
namespace LiveForum.IService.Others
{
/// <summary>
/// 微信 API 客户端管理器接口(支持配置热更新)
/// </summary>
public interface IWechatApiClientManager
{
/// <summary>
/// 获取微信 API 客户端实例
/// </summary>
/// <returns>WechatApiClient 实例</returns>
WechatApiClient GetClient();
/// <summary>
/// 重新加载客户端(配置变更时调用,创建新的客户端实例)
/// </summary>
/// <returns>是否重新加载成功</returns>
bool Reload();
/// <summary>
/// 检查客户端是否可用
/// </summary>
/// <returns>是否可用</returns>
bool IsAvailable();
/// <summary>
/// 获取当前配置的 AppId用于日志和监控
/// </summary>
/// <returns>AppId</returns>
string GetCurrentAppId();
}
}