feat(cordis): 接入上下文组合与模组事务热替换
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# ShrinkCommand.Integration.Network
|
||||
|
||||
`ShrinkCommand` 与 `ShrinkNetwork` 的桥接层。
|
||||
|
||||
## 能力
|
||||
|
||||
- 通过网络 RPC 执行命令
|
||||
- 远程命令来源自动映射为 `IShrinkCommandSource`
|
||||
- 继续复用命令系统自己的权限与来源限制
|
||||
|
||||
## 接入
|
||||
|
||||
```csharp
|
||||
commandService = new ShrinkCommandService();
|
||||
commandService.AutoRegisterAll();
|
||||
|
||||
networkService.UseCommandBridge(commandService);
|
||||
```
|
||||
|
||||
客户端调用:
|
||||
|
||||
```csharp
|
||||
var response = await session.ExecuteCommandAsync("help");
|
||||
```
|
||||
Reference in New Issue
Block a user