mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-05-01 03:53:22 +08:00
重新设计了Libray.Json Api以及 WebSocket 的交互处理方式
This commit is contained in:
@@ -5,6 +5,7 @@ using Serein.Library.Utils;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using static Serein.Library.Api.IJsonToken;
|
||||
|
||||
namespace Serein.Extend.NewtonsoftJson
|
||||
{
|
||||
@@ -13,6 +14,8 @@ namespace Serein.Extend.NewtonsoftJson
|
||||
/// </summary>
|
||||
public sealed class NewtonsoftJsonObjectToken : IJsonToken, IDictionary<string, IJsonToken>
|
||||
{
|
||||
public TokenType Type => TokenType.Object;
|
||||
|
||||
private readonly JObject _object;
|
||||
public NewtonsoftJsonObjectToken(JObject obj) => _object = obj;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user