优化了运行。在运行状态下,在画布上添加触发器、移除触发器、或者涉及到触发器的操作都会及时/延时生效(已经在等待信号的触发器,将会在触发信号后才会拿取新的信号类型创建触发任务)

This commit is contained in:
fengjiayi
2024-09-17 21:43:49 +08:00
parent 86da5b3ba6
commit ee1a41ed83
6 changed files with 117 additions and 50 deletions

View File

@@ -141,7 +141,7 @@ namespace Serein.Library.Utils
}
/// <summary>
/// 根据类型生成对应的实例并注入其中的依赖项类型信息不登记到IOC容器中
/// 根据类型生成对应的实例并注入其中的依赖项类型信息不登记到IOC容器中,类型创建后自动注入其它需要此类型的对象
/// </summary>
/// <param name="controllerType"></param>
/// <param name="parameters"></param>

View File

@@ -399,10 +399,18 @@ namespace Serein.Library.Web
catch (Exception ex)
{
// If serialization fails, use the original message's string representation
resultData = ex.ToString();
byte[] buffer = Encoding.UTF8.GetBytes(resultData);
response.ContentLength64 = buffer.Length;
response.OutputStream.Write(buffer, 0, buffer.Length);
try
{
resultData = ex.ToString();
byte[] buffer = Encoding.UTF8.GetBytes(resultData);
response.ContentLength64 = buffer.Length;
response.OutputStream.Write(buffer, 0, buffer.Length);
}
catch (Exception ex1)
{
Console.WriteLine(ex1);
}
}