Exemplo n.º 1
0
        public void serializationTestsProto()
        {
            using (var perfMeasure = new PerformanceMeasure(() =>
                                                   {
                                                       var ser = BusSerializer.Serialize(_testData);
                                                       BusSerializer.Deserialize<MessageWireData>(ser);

                                                   }, 1000000)) ;
        }
Exemplo n.º 2
0
        public void serializationTestsCustom()
        {
            var serializer = new MessageWireDataSerializer(new SerializationHelper(new AssemblyScanner()));
            using (var perfMeasure = new PerformanceMeasure(() =>
                                                                {
                                                                    var instance = new MessageWireData();
                                                                   var ser = serializer.Serialize(_testData);
                                                                   using (var stream = new MemoryStream(ser))
                                                                       serializer.Deserialize(stream, instance);

                                                               }, 1000000)) ;
        }