You are currently browsing legacy 3.0 version of documentation. Click here to switch to the newest 4.2 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

How to get all subscriptions?

In order to get info about all existing subscriptions we exposed the following method:

List<SubscriptionConfig> GetSubscriptions(int start, int take, string database = null);

Parameters
start int Indicates how many data subscriptions should be skipped.
take int Indicates how many data subscriptions should be taken.
database string Name of database to create a data subscription. If null, default database configured in DocumentStore will be used.
Return value
List<SubscriptionConfig> Configurations of existing subscriptions providing such information as: id, criteria, last acknowledged Etag, times of sending last batch and client activity.

Example

var configs = store.Subscriptions.GetSubscriptions(0, 10);