Beispiel #1
0
 public TcpOutboundClient(IAsyncNetTcpClient tcpClient, ApplicationMessageFactory messageFactory)
 {
     _tcpClient      = tcpClient;
     _messageFactory = messageFactory;
     _cts            = new CancellationTokenSource();
 }
Beispiel #2
0
        public TcpInboundServer(IAsyncNetTcpServer tcpServer, IInboundQueue <Tuple <bool, Message, IInboundReply> > tcpQueue, ApplicationMessageFactory messageFactory, IInboundReplyFactory replyFactory)
        {
            _tcpServer      = tcpServer;
            _tcpQueue       = tcpQueue;
            _messageFactory = messageFactory;
            _replyFactory   = replyFactory;

            _cts = new CancellationTokenSource();
        }