FunGame-Core/Interface/Base/IEntityConverter.cs
milimoe 18854781a6
完善 WebSocket 支持;防止 SQL 注入;修改 Json 自定义转换器基类 (#104)
* 更换任务计划实现方式;修改自定义 Json 转换器基类

* RunTimeController 添加 HTTPClient(WebSocket)支持;SQL 查询修改为参数化,防止注入
2025-01-11 01:09:49 +08:00

14 lines
436 B
C#

using System.Text.Json;
namespace Milimoe.FunGame.Core.Interface.Base
{
public interface IEntityConverter<T>
{
public T NewInstance();
public void ReadPropertyName(ref Utf8JsonReader reader, string propertyName, JsonSerializerOptions options, ref T result, Dictionary<string, object> convertingContext);
public void AfterConvert(ref T result, Dictionary<string, object> convertingContext);
}
}