Ejemplo n.º 1
0
        private void ClientDisconnected(object clientSession, ClientSessionDisconnectedEventArgs eventArgs)
        {
            if (clientSession is IClient client)
            {
                _logger.LogInformation($"Client: {client.Id} removed");

                foreach (var queue in _topicStore.GetAll())
                {
                    queue.ClientUnsubscribed(client);
                }

                _clientStore.Remove(client);
            }
        }