API Diff between 3.0.3 and 2.2.1
44 Additions
15 Removals
FsCodec.SystemTextJson
-
public static class Codec
- public static IEventCodec<Event, JsonElement, Context> Create<Event, Contract, Meta, Context>(FSharpFunc<Tuple<ITimelineEvent<JsonElement>, Contract>, Event> up, FSharpFunc<Tuple<FSharpOption<Context>, Event>, Tuple<Contract, FSharpOption<Meta>, Guid, string, string, FSharpOption<DateTimeOffset>>> down, FSharpOption<JsonSerializerOptions> options = null, FSharpOption<bool> rejectNullaryCases = null) where Contract : IUnionContract
- public static IEventCodec<Event, JsonElement, Context> Create<Event, Contract, Meta, Context>(FSharpFunc<Tuple<ITimelineEvent<JsonElement>, Contract>, Event> up, FSharpFunc<Event, Tuple<Contract, FSharpOption<Meta>, FSharpOption<DateTimeOffset>>> down, FSharpFunc<Tuple<FSharpOption<Context>, FSharpOption<Meta>>, Tuple<FSharpOption<Meta>, Guid, string, string>> mapCausation, FSharpOption<JsonSerializerOptions> options = null, FSharpOption<bool> rejectNullaryCases = null) where Contract : IUnionContract
- public static IEventCodec<Event, JsonElement, object> Create<Event, Contract, Meta>(FSharpFunc<Tuple<ITimelineEvent<JsonElement>, Contract>, Event> up, FSharpFunc<Event, Tuple<Contract, FSharpOption<Meta>, FSharpOption<DateTimeOffset>>> down, FSharpOption<JsonSerializerOptions> options = null, FSharpOption<bool> rejectNullaryCases = null) where Contract : IUnionContract
- public static IEventCodec<Union, JsonElement, object> Create<Union>(FSharpOption<JsonSerializerOptions> options = null, FSharpOption<bool> rejectNullaryCases = null) where Union : IUnionContract
- public static IEventCodec<Event, ReadOnlyMemory<byte>, Context> Create<Event, Contract, Meta, Context>(Func<ITimelineEvent<ReadOnlyMemory<byte>>, Contract, Event> up, Func<Context, Event, ValueTuple<Contract, FSharpValueOption<Meta>, Guid, string, string, DateTimeOffset>> down, FSharpOption<JsonSerializerOptions> options = null, FSharpOption<Serdes> serdes = null, FSharpOption<bool> rejectNullaryCases = null) where Contract : IUnionContract
- public static IEventCodec<Event, ReadOnlyMemory<byte>, Context> Create<Event, Contract, Meta, Context>(Func<ITimelineEvent<ReadOnlyMemory<byte>>, Contract, Event> up, Func<Event, ValueTuple<Contract, FSharpValueOption<Meta>, FSharpValueOption<DateTimeOffset>>> down, Func<Context, FSharpValueOption<Meta>, ValueTuple<FSharpValueOption<Meta>, Guid, string, string>> mapCausation, FSharpOption<JsonSerializerOptions> options = null, FSharpOption<Serdes> serdes = null, FSharpOption<bool> rejectNullaryCases = null) where Contract : IUnionContract
- public static IEventCodec<Event, ReadOnlyMemory<byte>, Unit> Create<Event, Contract, Meta>(Func<ITimelineEvent<ReadOnlyMemory<byte>>, Contract, Event> up, Func<Event, ValueTuple<Contract, FSharpValueOption<Meta>, FSharpValueOption<DateTimeOffset>>> down, FSharpOption<JsonSerializerOptions> options = null, FSharpOption<Serdes> serdes = null, FSharpOption<bool> rejectNullaryCases = null) where Contract : IUnionContract
- public static IEventCodec<Union, ReadOnlyMemory<byte>, Unit> Create<Union>(FSharpOption<JsonSerializerOptions> options = null, FSharpOption<Serdes> serdes = null, FSharpOption<bool> rejectNullaryCases = null) where Union : IUnionContract
-
public static class CodecJsonElement
- public static IEventCodec<Event, JsonElement, Context> Create<Event, Contract, Meta, Context>(Func<ITimelineEvent<JsonElement>, Contract, Event> up, Func<Context, Event, ValueTuple<Contract, FSharpValueOption<Meta>, Guid, string, string, DateTimeOffset>> down, FSharpOption<JsonSerializerOptions> options = null, FSharpOption<Serdes> serdes = null, FSharpOption<bool> rejectNullaryCases = null) where Contract : IUnionContract
- public static IEventCodec<Event, JsonElement, Context> Create<Event, Contract, Meta, Context>(Func<ITimelineEvent<JsonElement>, Contract, Event> up, Func<Event, ValueTuple<Contract, FSharpValueOption<Meta>, FSharpValueOption<DateTimeOffset>>> down, Func<Context, FSharpValueOption<Meta>, ValueTuple<FSharpValueOption<Meta>, Guid, string, string>> mapCausation, FSharpOption<JsonSerializerOptions> options = null, FSharpOption<Serdes> serdes = null, FSharpOption<bool> rejectNullaryCases = null) where Contract : IUnionContract
- public static IEventCodec<Event, JsonElement, Unit> Create<Event, Contract, Meta>(Func<ITimelineEvent<JsonElement>, Contract, Event> up, Func<Event, ValueTuple<Contract, FSharpValueOption<Meta>, FSharpValueOption<DateTimeOffset>>> down, FSharpOption<JsonSerializerOptions> options = null, FSharpOption<Serdes> serdes = null, FSharpOption<bool> rejectNullaryCases = null) where Contract : IUnionContract
- public static IEventCodec<Union, JsonElement, Unit> Create<Union>(FSharpOption<JsonSerializerOptions> options = null, FSharpOption<Serdes> serdes = null, FSharpOption<bool> rejectNullaryCases = null) where Union : IUnionContract
-
public class InteropExtensions
-
public class JsonOptionConverter : JsonConverterFactory
-
public class JsonOptionConverter<T> : JsonConverter<FSharpOption<T>>
-
public sealed delegate OptionConverterActivator : MulticastDelegate
-
public class JsonUnionConverterOptionsAttribute : Attribute
-
public static class Options
- public static JsonSerializerOptions Create(JsonConverter[] converters, FSharpOption<bool> indent = null, FSharpOption<bool> camelCase = null, FSharpOption<bool> ignoreNulls = null, FSharpOption<bool> unsafeRelaxedJsonEscaping = null)
- public static JsonSerializerOptions Default { get; }
- public static JsonSerializerOptions Create(JsonConverter[] converters, FSharpOption<bool> indent = null, FSharpOption<bool> camelCase = null, FSharpOption<bool> ignoreNulls = null, FSharpOption<bool> unsafeRelaxedJsonEscaping = null, FSharpOption<bool> autoTypeSafeEnumToJsonString = null, FSharpOption<bool> autoUnionToJsonObject = null, FSharpOption<bool> rejectNullStrings = null)
-
public class RejectNullStringConverter : JsonConverter<string>
-
public class Serdes
-
public static class TypeSafeEnum
-
public abstract class StringIdConverter<T> : JsonConverter<T> where T : StringId<T>
-
public abstract class StringIdOrDictionaryKeyConverter<T> : JsonConverter<T> where T : StringId<T>
-
public class UnionConverter<T> : JsonConverter<T>
-
public class UnionOrTypeSafeEnumConverterFactory : JsonConverterFactory
FsCodec.SystemTextJson.Core
FsCodec.SystemTextJson.Interop
-
public static class InteropHelpers
- public static ReadOnlyMemory<byte> JsonElementToUtf8(JsonElement x)
- public static IEventCodec<Event, JsonElement, Context> ToJsonElementCodec<Event, Context>(this IEventCodec<Event, ReadOnlyMemory<byte>, Context> native)
- public static IEventCodec<Event, ReadOnlyMemory<byte>, Context> ToUtf8Codec<Event, Context>(this IEventCodec<Event, JsonElement, Context> native)
- public static JsonElement Utf8ToJsonElement(ReadOnlyMemory<byte> x)