mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-12 08:53:01 +00:00
2fb3442800
Initial support for System.Text.Json and some refactoring
13 lines
376 B
C#
13 lines
376 B
C#
using CryptoExchange.Net.Interfaces;
|
|
using System.Text.Json;
|
|
|
|
namespace CryptoExchange.Net.Converters.SystemTextJson
|
|
{
|
|
/// <inheritdoc />
|
|
public class SystemTextJsonMessageSerializer : IMessageSerializer
|
|
{
|
|
/// <inheritdoc />
|
|
public string Serialize(object message) => JsonSerializer.Serialize(message, SerializerOptions.WithConverters);
|
|
}
|
|
}
|