mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-04-11 10:26:34 +08:00
破坏性更新,移除了Core/Framework(对应的上下文类移动到了Library)
This commit is contained in:
@@ -35,14 +35,20 @@ namespace Serein.FlowStartTool
|
||||
// this.window = window;
|
||||
//}
|
||||
|
||||
Env = new FlowEnvironmentDecorator(uIContextOperation);
|
||||
Env = new FlowEnvironmentDecorator();
|
||||
Env.SetUIContextOperation(uIContextOperation);
|
||||
Env.LoadProject(new FlowEnvInfo { Project = flowProjectData }, fileDataPath); // 加载项目
|
||||
|
||||
// 获取环境输出
|
||||
Env.OnEnvOut += (infoType, value) =>
|
||||
if(Env is IFlowEnvironmentEvent @event)
|
||||
{
|
||||
Console.WriteLine($"{DateTime.Now} [{infoType}] : {value}{Environment.NewLine}");
|
||||
};
|
||||
// 获取环境输出
|
||||
@event.OnEnvOut += (infoType, value) =>
|
||||
{
|
||||
Console.WriteLine($"{DateTime.Now} [{infoType}] : {value}{Environment.NewLine}");
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
await Env.StartRemoteServerAsync(7525); // 启动 web socket 监听远程请求
|
||||
|
||||
|
||||
Reference in New Issue
Block a user