You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kev/Drawer/AI/AgentIntegration/AppControllerHolder.cs

15 lines
585 B
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

namespace AI.AgentIntegration
{
/// <summary>
/// 供宿主(如 Drawer在构建 DI 前注入真实 IAppController 的占位。
/// 在 Avalonia 应用启动前设置 <see cref="Instance"/>,则 <see cref="ServiceCollectionExtensions.AddCommonServices"/> 会注册该实例。
/// </summary>
public static class AppControllerHolder
{
/// <summary>
/// 宿主设置的应用程序控制器,若未设置则使用 <see cref="NoOpAppController"/>。
/// </summary>
public static IAppController? Instance { get; set; }
}
}