修改了Library相关接口更改后,Workbench不能正确监听环境事件的问题

This commit is contained in:
fengjiayi
2024-12-31 21:47:01 +08:00
parent d3312f4989
commit 6c6d493f93
3 changed files with 58 additions and 50 deletions

View File

@@ -255,21 +255,28 @@ namespace Serein.Library
public override string ToString()
{
var tmp = this.MethodName.Split('.') ;
var methodName = tmp[tmp.Length - 1];
StringBuilder sb = new StringBuilder();
sb.AppendLine($"节点Guid{this.NodeModel.Guid}");
sb.AppendLine($"方法别名:{this.MethodAnotherName}");
sb.AppendLine($"方法名称:{this.MethodName}");
sb.AppendLine($"需要实例:{this.ActingInstanceType?.FullName}");
sb.AppendLine($"节点Guid");
sb.AppendLine($"\t{this.NodeModel.Guid}");
sb.AppendLine();
sb.AppendLine($"方法名称:");
sb.AppendLine($"\t{methodName}");
sb.AppendLine($"方法别名:");
sb.AppendLine($"\t{this.MethodAnotherName}");
sb.AppendLine($"需要实例:");
sb.AppendLine($"\t{this.ActingInstanceType?.FullName}");
sb.AppendLine($"");
sb.AppendLine($"入参参数信息:");
sb.AppendLine($"入参信息:");
for (int i = 0; i < ParameterDetailss.Length; i++)
{
ParameterDetails arg = this.ParameterDetailss[i];
sb.AppendLine(arg.ToString());
}
sb.AppendLine($"");
sb.AppendLine();
sb.AppendLine($"返回值信息:");
sb.AppendLine($" {this.ReturnType?.FullName}");
sb.AppendLine($"\t{this.ReturnType?.FullName}");
return sb.ToString();
}