破坏性更新,移除了Core/Framework(对应的上下文类移动到了Library)

This commit is contained in:
fengjiayi
2025-01-22 21:09:52 +08:00
parent 652707f980
commit eb1505596a
68 changed files with 1034 additions and 2600 deletions

View File

@@ -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 监听远程请求