Skip to main content

How to get all subscriptions?

#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
startintIndicates how many data subscriptions should be skipped.
takeintIndicates how many data subscriptions should be taken.
databasestringName 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.
//	var configs = store.Subscriptions.GetSubscriptions(0, 10);
//