public override void BeforeMarshall(OpenWireFormat wireFormat)
 {
     MarshalledProperties = null;
     if (properties != null)
     {
         MarshalledProperties = properties.Marshal();
     }
 }
示例#2
0
        public void TestMarshalled()
        {
            PrimitiveMap map = CreatePrimitiveMap();

            byte[] data = map.Marshal();
            map = PrimitiveMap.Unmarshal(data);
            AssertPrimitiveMap(map);
        }
示例#3
0
        public void TestMarshalled()
        {
            PrimitiveMap map = CreatePrimitiveMap();

            Console.WriteLine("data: " + map);
            byte[] data = map.Marshal();
            map = PrimitiveMap.Unmarshal(data);
            Console.WriteLine("data: " + map);
            AssertPrimitiveMap(map);
        }
示例#4
0
        public void TestMarshalledWithBigString()
        {
            PrimitiveMap map  = CreatePrimitiveMap();
            String       test = new String('a', 65538);

            map.SetString("BIG_STRING", test);
            byte[] data = map.Marshal();
            map = PrimitiveMap.Unmarshal(data);
            AssertPrimitiveMap(map);
            Assert.AreEqual(test, map.GetString("BIG_STRING"));
        }
示例#5
0
        public override void BeforeMarshall(OpenWireFormat wireFormat)
        {
            if (body == null)
            {
                Content = null;
            }
            else
            {
                Content = body.Marshal();
            }

            //Console.WriteLine("BeforeMarshalling, content is: " + Content);

            base.BeforeMarshall(wireFormat);
        }
        public override void BeforeMarshall(OpenWireFormat wireFormat)
        {
            if (body == null)
            {
                Content = null;
            }
            else
            {
                Content = body.Marshal();
            }

            Tracer.Debug("BeforeMarshalling, content is: " + Content);

            base.BeforeMarshall(wireFormat);
        }