public static void Serialize(JsonHistory history, Stream stream)
        {
            Guard.NotNull(history, nameof(history));
            Guard.NotNull(stream, nameof(stream));

            JsonStreamConvert.SerializeAsJson(history, stream, HistorySerializerSettings);
        }
        public static byte[] Serialize(JsonHistory history)
        {
            Guard.NotNull(history, nameof(history));

            using (var stream = new MemoryStream())
            {
                Serialize(history, stream);

                return(stream.ToArray());
            }
        }