private void SocketServer_ClientConnected(object sender, ClientConnectedEventArgs e)
        {
            _logger.LogInformation($"{e.Client.UserId} from {e.Client.MerchantId} Connected");

            foreach (var item in _socketServer.ConnectedClients)
            {
                _logger.LogInformation($"{e.Client.UserId} from {e.Client.MerchantId} : {item.Value.Count}");
            }
        }
Exemple #2
0
        protected virtual void OnClientConnected(ClientConnectedEventArgs e)
        {
            var handlers = this.ClientConnected;

            handlers?.Invoke(this, e);
        }