1. 重新设计了Generate项目及相关特性的命名,避免与其他类型混淆。

2. 补充了部分注释。
3. 修改了删除容器节点时,容器内子节点未正确删除的问题。
This commit is contained in:
fengjiayi
2025-07-30 21:15:07 +08:00
parent 93148b11a5
commit 152077e9b5
188 changed files with 2713 additions and 1406 deletions

View File

@@ -13,17 +13,17 @@ namespace Serein.Proto.WebSocket.Handle
/// <summary>
/// Emit委托
/// </summary>
public DelegateDetails DelegateDetails { get; set; }
public DelegateDetails? DelegateDetails { get; set; }
/// <summary>
/// 未捕获的异常跟踪
/// </summary>
public Action<Exception, Action<object>> OnExceptionTracking { get; set; }
public Action<Exception, Action<object>>? OnExceptionTracking { get; set; }
/// <summary>
/// 所使用的实例
/// </summary>
public Func<ISocketHandleModule> InstanceFactory { get; set; }
public Func<ISocketHandleModule>? InstanceFactory { get; set; }
/// <summary>
/// 是否需要返回
@@ -38,32 +38,32 @@ namespace Serein.Proto.WebSocket.Handle
/// <summary>
/// 是否使用Data整体内容作为入参参数
/// </summary>
public bool[] UseData { get; set; }
public bool[] UseData { get; set; } = [];
/// <summary>
/// 是否使用Request整体内容作为入参参数
/// </summary>
public bool[] UseRequest { get; set; }
public bool[] UseRequest { get; set; } = [];
/// <summary>
/// 是否使用消息ID作为入参参数
/// </summary>
public bool[] UseMsgId { get; set; }
public bool[] UseMsgId { get; set; } = [];
/// <summary>
/// 参数名称
/// </summary>
public string[] ParameterName { get; set; }
public string[] ParameterName { get; set; } = [];
/// <summary>
/// 参数类型
/// </summary>
public Type[] ParameterType { get; set; }
public Type[] ParameterType { get; set; } = [];
/// <summary>
/// 是否检查变量为空
/// </summary>
public bool[] IsCheckArgNotNull { get; set; }
public bool[] IsCheckArgNotNull { get; set; } = [];
}