Skip to content

Commit 27bbe78

Browse files
💾 Feat(Contract): IPluginServer 接口新增 Connections 属性
- 新增 IReadOnlyList<IPluginConnector> Connections { get; } - 允许 UI 层通过 DI 接口访问已连接插件的 PluginInfo.Functions
1 parent ff4aa0d commit 27bbe78

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

KitX Core Contracts/KitX.Core.Contract/Plugin/IPluginService.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ public interface IPluginServer
7777
/// </summary>
7878
int? Port { get; }
7979

80+
/// <summary>
81+
/// Gets the list of currently connected plugins
82+
/// </summary>
83+
IReadOnlyList<IPluginConnector> Connections { get; }
84+
8085
/// <summary>
8186
/// Starts the plugin server
8287
/// </summary>

0 commit comments

Comments
 (0)