How to release a data subscription?
#How to release a data subscription?
Because just a single client can keep the subscription open the API exposes a method that allows to release a subscription by forcing a connected client to drop:
// void Release(long id, string database = null);
//
Parameters | ||
---|---|---|
id | long | Subscription identifier. |
database | string | Name of database to create a data subscription. If null , default database configured in DocumentStore will be used. |
// store.Subscriptions.Release(id);
//