Exemplo n.º 1
0
 public Server(IChatAppConfig config, IUtils utils, int port)
 {
     _config  = config;
     _port    = port;
     _utils   = utils;
     _sockets = new List <IWebSocketConnection>();
 }
Exemplo n.º 2
0
 public Client(IChatAppConfig config, IUtils utils, int port, string userName)
 {
     _config                  = config;
     _utils                   = utils;
     _port                    = port;
     _userName                = userName;
     _webSocketClient         = new ClientWebSocket();
     _cancellationTokenSource = new CancellationTokenSource();
 }
Exemplo n.º 3
0
 public UtilsImpl(IChatAppConfig config)
 {
     _config = config;
 }