mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-15 05:56:34 +08:00
重新设计接口类,将流程运行环境和IOC解耦
This commit is contained in:
@@ -11,9 +11,9 @@ namespace Serein.NodeFlow.Env
|
||||
/// <summary>
|
||||
/// 服务端的消息管理(用于处理客户端的请求)
|
||||
/// </summary>
|
||||
[AutoSocketModule(ThemeKey = FlowEnvironment.ThemeKey,
|
||||
DataKey = FlowEnvironment.DataKey,
|
||||
MsgIdKey = FlowEnvironment.MsgIdKey)]
|
||||
[AutoSocketModule(ThemeKey = LocalFlowEnvironment.ThemeKey,
|
||||
DataKey = LocalFlowEnvironment.DataKey,
|
||||
MsgIdKey = LocalFlowEnvironment.MsgIdKey)]
|
||||
public class MsgControllerOfServer : ISocketHandleModule
|
||||
{
|
||||
/// <summary>
|
||||
@@ -156,8 +156,8 @@ namespace Serein.NodeFlow.Env
|
||||
{
|
||||
JObject sendJson = new JObject
|
||||
{
|
||||
[FlowEnvironment.ThemeKey] = theme,
|
||||
[FlowEnvironment.DataKey] = JObject.FromObject(data),
|
||||
[LocalFlowEnvironment.ThemeKey] = theme,
|
||||
[LocalFlowEnvironment.DataKey] = JObject.FromObject(data),
|
||||
};
|
||||
var msg = sendJson.ToString();
|
||||
await SendAsync(msg);
|
||||
|
||||
Reference in New Issue
Block a user