コード例 #1
0
        public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::DRXLibrary.Models.Drx.Document.DrxDocumentHeader value, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (value is null)
            {
                writer.WriteNil();
                return;
            }

            IFormatterResolver formatterResolver = options.Resolver;

            writer.WriteMapHeader(9);
            writer.WriteRaw(GetSpan_Title());
            formatterResolver.GetFormatterWithVerify <string>().Serialize(ref writer, value.Title, options);
            writer.WriteRaw(GetSpan_TimeStamp());
            formatterResolver.GetFormatterWithVerify <global::System.DateTimeOffset>().Serialize(ref writer, value.TimeStamp, options);
            writer.WriteRaw(GetSpan_Vrel());
            formatterResolver.GetFormatterWithVerify <global::DRXLibrary.Models.Drx.Document.DrxDocumentVrel>().Serialize(ref writer, value.Vrel, options);
            writer.WriteRaw(GetSpan_Flags());
            formatterResolver.GetFormatterWithVerify <global::System.Collections.Generic.List <global::System.Guid> >().Serialize(ref writer, value.Flags, options);
            writer.WriteRaw(GetSpan_Store());
            formatterResolver.GetFormatterWithVerify <global::System.Guid>().Serialize(ref writer, value.Store, options);
            writer.WriteRaw(GetSpan_Encrypted());
            writer.Write(value.Encrypted);
            writer.WriteRaw(GetSpan_Key());
            formatterResolver.GetFormatterWithVerify <global::CoreLibrary.Models.Crypto.CryptoKey>().Serialize(ref writer, value.Key, options);
            writer.WriteRaw(GetSpan_SecurityLevel());
            formatterResolver.GetFormatterWithVerify <global::DRXLibrary.Models.Drx.DrxSecurityLevel>().Serialize(ref writer, value.SecurityLevel, options);
            writer.WriteRaw(GetSpan_BodyType());
            formatterResolver.GetFormatterWithVerify <global::DRXLibrary.Models.Drx.DrxBodyType>().Serialize(ref writer, value.BodyType, options);
        }
コード例 #2
0
        public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::TestData2.Nest2.IdType value, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (value is null)
            {
                writer.WriteNil();
                return;
            }

            writer.WriteMapHeader(0);
        }
コード例 #3
0
        public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::DRXLibrary.Models.Drx.Store.DrxStoreCache value, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (value is null)
            {
                writer.WriteNil();
                return;
            }

            IFormatterResolver formatterResolver = options.Resolver;

            writer.WriteMapHeader(1);
            writer.WriteRaw(GetSpan_Stores());
            formatterResolver.GetFormatterWithVerify <global::System.Collections.Generic.List <global::DRXLibrary.Models.Drx.Store.LocalDrxStore> >().Serialize(ref writer, value.Stores, options);
        }
コード例 #4
0
        public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::TestData2.Record value, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (value is null)
            {
                writer.WriteNil();
                return;
            }

            var formatterResolver = options.Resolver;

            writer.WriteMapHeader(1);
            writer.WriteRaw(GetSpan_SomeProperty());
            global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify <string>(formatterResolver).Serialize(ref writer, value.SomeProperty, options);
        }
コード例 #5
0
        public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::TestData2.Nest2 value, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (value is null)
            {
                writer.WriteNil();
                return;
            }

            var formatterResolver = options.Resolver;

            writer.WriteMapHeader(2);
            writer.WriteRaw(GetSpan_EnumId());
            global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify <global::TestData2.Nest2.Id>(formatterResolver).Serialize(ref writer, value.EnumId, options);
            writer.WriteRaw(GetSpan_ClassId());
            global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify <global::TestData2.Nest2.IdType>(formatterResolver).Serialize(ref writer, value.ClassId, options);
        }
コード例 #6
0
        public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::TestData2.C value, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (value is null)
            {
                writer.WriteNil();
                return;
            }

            var formatterResolver = options.Resolver;

            writer.WriteMapHeader(2);
            writer.WriteRaw(GetSpan_b());
            global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify <global::TestData2.B>(formatterResolver).Serialize(ref writer, value.b, options);
            writer.WriteRaw(GetSpan_a());
            writer.Write(value.a);
        }
コード例 #7
0
        public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::TestData2.PropNameCheck2 value, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (value is null)
            {
                writer.WriteNil();
                return;
            }

            IFormatterResolver formatterResolver = options.Resolver;

            writer.WriteMapHeader(2);
            writer.WriteRaw(GetSpan_MyProperty1());
            formatterResolver.GetFormatterWithVerify <string>().Serialize(ref writer, value.MyProperty1, options);
            writer.WriteRaw(GetSpan_MyProperty2());
            formatterResolver.GetFormatterWithVerify <string>().Serialize(ref writer, value.MyProperty2, options);
        }
コード例 #8
0
        public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::TestData2.B value, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (value is null)
            {
                writer.WriteNil();
                return;
            }

            var formatterResolver = options.Resolver;

            writer.WriteMapHeader(3);
            writer.WriteRaw(GetSpan_ass());
            global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify <global::System.Collections.Generic.List <global::TestData2.A> >(formatterResolver).Serialize(ref writer, value.ass, options);
            writer.WriteRaw(GetSpan_c());
            global::MessagePack.FormatterResolverExtensions.GetFormatterWithVerify <global::TestData2.C>(formatterResolver).Serialize(ref writer, value.c, options);
            writer.WriteRaw(GetSpan_a());
            writer.Write(value.a);
        }
コード例 #9
0
        public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::DRXLibrary.Models.Drx.Store.LocalDrxStore value, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (value is null)
            {
                writer.WriteNil();
                return;
            }

            IFormatterResolver formatterResolver = options.Resolver;

            writer.WriteMapHeader(5);
            writer.WriteRaw(GetSpan_Id());
            formatterResolver.GetFormatterWithVerify <global::System.Guid>().Serialize(ref writer, value.Id, options);
            writer.WriteRaw(GetSpan_Name());
            formatterResolver.GetFormatterWithVerify <string>().Serialize(ref writer, value.Name, options);
            writer.WriteRaw(GetSpan_Encrypted());
            writer.Write(value.Encrypted);
            writer.WriteRaw(GetSpan_Key());
            formatterResolver.GetFormatterWithVerify <global::CoreLibrary.Models.Crypto.CryptoKey>().Serialize(ref writer, value.Key, options);
            writer.WriteRaw(GetSpan_FlagDefinitions());
            formatterResolver.GetFormatterWithVerify <global::System.Collections.Generic.List <global::DRXLibrary.Models.Drx.DrxFlag> >().Serialize(ref writer, value.FlagDefinitions, options);
        }