Exemplo n.º 1
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)) ;
        }
 public ZmqPullWireDataReceiver(ZmqContext context, ZmqTransportConfiguration configuration, ISerializationHelper helper)
 {
     _context = context;
     _configuration = configuration;
     _serializer = new MessageWireDataSerializer(helper);
 }
 public void setup()
 {
     _serializer = new MessageWireDataSerializer(new SerializationHelper(new AssemblyScanner()));
 }
 public CustomTcpTransportWireDataReceiver(ICustomTcpTransportConfiguration configuration, ISerializationHelper helper)
 {
     _configuration = configuration;
     _serializer = new MessageWireDataSerializer(helper);
     _endpoint = new CustomTcpEndpoint(new IPEndPoint(IPAddress.Loopback, _configuration.Port));
 }
 public ZmqPushWireSendingTransport(ZmqContext context, ISerializationHelper helper)
 {
     _context = context;
     _serializer = new MessageWireDataSerializer(helper);
 }
 public CustomTcpWireSendingTransport(ISerializationHelper helper, TaskScheduler taskScheduler)
 {
     _taskScheduler = taskScheduler;
     _serializer = new MessageWireDataSerializer(helper);
 }