给 Claude 订阅装一只电表 —— Claude API 多项目计量代理 `token-proxy` 实现详解
2026/5/5 21:07:04
在工作流开发中,涉及到多个项目的操作与配置。以下是详细步骤:
-实现ApplicationInterface类:
using System; using System.IO; using System.Windows.Controls; using System.Activities; namespace LeadResponse { public static class ApplicationInterface { public static FollowUpLead _app { get; set; } public static void AddAssignment(LeadGenerator.Assignment a) { if (_app != null) _app.lstLeads.Dispatcher.BeginInvoke (new Action(() => _app.AddAssignment(a))); } public static void UpdateAssignment(LeadGenerator.Assignment a) { if (_app != null) _app.lstL