public TcpOutboundClient(IAsyncNetTcpClient tcpClient, ApplicationMessageFactory messageFactory) { _tcpClient = tcpClient; _messageFactory = messageFactory; _cts = new CancellationTokenSource(); }
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(); }