Example #1
0
 public Parser(ILogger logger, IDataConverter <TData> converter)
 {
     _logger              = logger;
     _converter           = converter;
     _queueReceiveRawData = new ConcurrentQueue <byte>();
     _queueReceive        = new ConcurrentQueue <TData>();
     _converter.Init();
 }
Example #2
0
 public Sender(ILogger logger, IDataConverter <TData> converter, Socket socket, CancellationToken ct)
 {
     _logger    = logger;
     _queueSend = new ConcurrentQueue <TData>();
     _converter = converter;
     _socket    = socket;
     _converter.Init();
     _ct = ct;
 }