mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-04-22 03:59:35 +08:00

* 更换任务计划实现方式;修改自定义 Json 转换器基类 * RunTimeController 添加 HTTPClient(WebSocket)支持;SQL 查询修改为参数化,防止注入
14 lines
436 B
C#
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);
|
|
}
|
|
}
|