private void SocketServer_ClientDisconnected(object sender, ClientDisconnectedEventArgs e) { _logger.LogInformation($"{e.Client.UserId} from {e.Client.MerchantId} disconnected"); foreach (var item in _socketServer.ConnectedClients) { _logger.LogInformation($"{e.Client.UserId} from {e.Client.MerchantId} : {item.Value.Count}"); } }
protected virtual void OnClientDisconnect(ClientDisconnectedEventArgs e) { var handlers = this.ClientDisconnected; handlers?.Invoke(this, e); }