Skip to content

Commit

Permalink
Move ByteArrayDeferralConverterFactory to NewtonsoftJson.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcweber committed Nov 7, 2023
1 parent 37f1d9b commit 78b2db9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/Core/Deserialization/Deserializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ namespace ExRam.Gremlinq.Core.Deserialization
{
public static class Deserializer
{
public static readonly ITransformer Default = Transformer.Invalid
.Add(new ByteArrayDeferralConverterFactory());
public static readonly ITransformer Default = Transformer.Invalid;
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using System.Diagnostics.CodeAnalysis;

using ExRam.Gremlinq.Core;
using ExRam.Gremlinq.Core.Transformation;

namespace ExRam.Gremlinq.Core.Deserialization
namespace ExRam.Gremlinq.Support.NewtonsoftJson
{
internal sealed class ByteArrayDeferralConverterFactory : IConverterFactory
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public FluentForType(ITransformer deserializer, Type type)
public static ITransformer UseNewtonsoftJson(this ITransformer transformer)
{
return transformer
.Add(new ByteArrayDeferralConverterFactory())
.Add(new NewtonsoftJsonSerializerConverterFactory())
.Add(new VertexPropertyPropertiesConverterFactory())
.Add(ConverterFactory
Expand Down

0 comments on commit 78b2db9

Please sign in to comment.