Switch from System.Text.Json to Newtonsoft, typify the BTCPayServer.Client

This commit is contained in:
nicolas.dorier
2020-03-20 14:01:51 +09:00
parent 2def9e7bd3
commit a0e638d500
14 changed files with 79 additions and 26 deletions

View File

@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Text;
using BTCPayServer.Client.JsonConverters;
using Newtonsoft.Json;
namespace BTCPayServer.Client
{
public class Serializer
{
public static void RegisterConverters(JsonSerializerSettings settings)
{
if (settings == null)
throw new ArgumentNullException(nameof(settings));
settings.Converters.Add(new PermissionJsonConverter());
}
}
}