예제 #1
0
        public void Remove(Guid peerId, Uri peerUri, Guid subscriptionId, Uri endpointUri, string messageName, string correlationId)
        {
            var subscription = new PersistentSubscription(_busUri, peerId, peerUri, subscriptionId, endpointUri, messageName,
                                                          correlationId);

            _fiber.Add(() => Remove(subscription));
        }
예제 #2
0
        void Remove(PersistentSubscription subscription)
        {
            try
            {
                if (_log.IsDebugEnabled)
                {
                    _log.DebugFormat("SubscriptionRepository.Remove: {0}, {1}", subscription.MessageName,
                                     subscription.SubscriptionId);
                }

                _storage.Remove(subscription);
            }
            catch (Exception ex)
            {
                _log.Error("Failed to remove persistent subscription", ex);
            }
        }