/// <summary> /// Removes the subscription. /// </summary> /// <param name="subscriptionRequest">The subscription.</param> private void RemoveSubscription(DataSubscriptionRequest subscriptionRequest) { var found = _requesteddatasubscriptions.Where(x => x.GetSubscriptionName() == subscriptionRequest.GetSubscriptionName()).ToArray(); if (found.Any()) { found.ForEach(x => { _requesteddatasubscriptions.Remove(x); _datafeed.RemoveSubscription(x); }); } }