Example #1
0
        // ICoreClient subscription methods
        public void Unsubscribe(Guid subscriptionId)
        {
            Client.Unsubscribe(subscriptionId);
            _Subscriptions.Remove(subscriptionId);
            var cacheItems = Cache.GetCacheItems();

            foreach (var cacheItem in cacheItems)
            {
                if (cacheItem.UserParam.SubscriptionId == subscriptionId)
                {
                    Cache.Remove(cacheItem.UserKey, cacheItem.UserParam);
                }
            }
        }