Exemplo n.º 1
0
 public Server(IClientService clientService, IMessageProtocolProcessor protocolProcessor,
               IClientsPool clientsPool, ISettings settings)
 {
     _clientService            = clientService;
     _messageProtocolProcessor = protocolProcessor;
     _clientsPool = clientsPool;
     _settings    = settings;
 }
Exemplo n.º 2
0
        public Client(ITwoWayNotifier notifier, IMessageProtocolProcessor protocolProcessor)
        {
            _notifier          = notifier;
            _protocolProcessor = protocolProcessor;

            _tcpClient = new TcpClient();

            InitializeEvents();
        }
Exemplo n.º 3
0
 public ConnectionEstablishedMessageProtocolProcessorDecorator(
     IMessageProtocolProcessor innerProcessor, INotifierActions notifier)
     : base(notifier)
 {
     _innerProcessor = innerProcessor;
 }
Exemplo n.º 4
0
 public ClientDisconnectedMessageProtocolProcessDecorator(IMessageProtocolProcessor innerProcessor,
                                                          INotifierActions notifier)
     : base(notifier)
 {
     _innerProcessor = innerProcessor;
 }
Exemplo n.º 5
0
 public MessageReceivedMessageProtocolProcessorDecorator(IMessageProtocolProcessor innerProcessor,
                                                         INotifierActions notifier)
     : base(notifier)
 {
     _innerProcessor = innerProcessor;
 }
 public MeseMessageProtocolProcessorDecorator(IMessageProtocolProcessor innerProcessor,
                                              IClientsPool clientsPool)
 {
     _innerProcessor = innerProcessor;
     _clientsPool    = clientsPool;
 }