Пример #1
0
        public virtual bool Subscribe(Client client)
        {
            if (Subscription.TryGetValue(client, out var chatChannel))
            {
                chatChannel.UnSubscribe(client);
            }

            lock (Subscription)
                Subscription.AddOrUpdate(client, this, (_, cc) => cc);

            return(true);
        }