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.
using System;
using System.Threading.Tasks;
namespace AI.AgentIntegration
{
/// <summary>
/// 无操作 AppController,在未注入真实控制器时使用(如独立运行 AI 模块时)。
/// </summary>
public sealed class NoOpAppController : IAppController
public event EventHandler<AppState>? StateChanged;
public AppState GetCurrentState() => new AppState();
public Task<AppActionResult> ExecuteAsync(AppAction action)
return Task.FromResult(AppActionResult.Fail("未连接应用控制器"));
}