mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 00:00:49 +08:00
将部分节点基类与表达式工具类从nodeflow迁移到library,重写了环境与工作台的交互,解耦节点的获取,下一部分将尝试远程登录环境编辑流程。
This commit is contained in:
@@ -19,7 +19,9 @@ using System.Security.Cryptography;
|
||||
|
||||
namespace Serein.Library.Network.WebSocketCommunication.Handle
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 适用于Json数据格式的WebSocket消息处理类
|
||||
/// </summary>
|
||||
public class WebSocketMsgHandleHelper
|
||||
{
|
||||
/// <summary>
|
||||
@@ -68,7 +70,7 @@ namespace Serein.Library.Network.WebSocketCommunication.Handle
|
||||
var key = (themeKeyName, dataKeyName);
|
||||
if (MyHandleModuleDict.TryGetValue(key, out var myHandleModules))
|
||||
{
|
||||
var isRemote = myHandleModules.ResetConfig(socketControlBase);
|
||||
var isRemote = myHandleModules.RemoveConfig(socketControlBase);
|
||||
if (isRemote) MyHandleModuleDict.TryGetValue(key, out _);
|
||||
}
|
||||
|
||||
@@ -132,6 +134,12 @@ namespace Serein.Library.Network.WebSocketCommunication.Handle
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 异步处理消息
|
||||
/// </summary>
|
||||
/// <param name="RecoverAsync"></param>
|
||||
/// <param name="message"></param>
|
||||
/// <returns></returns>
|
||||
public async Task HandleMsgAsync(Func<string, Task> RecoverAsync, string message)
|
||||
{
|
||||
JObject json = JObject.Parse(message);
|
||||
|
||||
Reference in New Issue
Block a user