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)); }
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); } }