RedisServerEvents Subscriptions

Hello,
We have a problem with the number of active subscription

IServerEvents _serverEvents; //RedisServerEvents
var activeAndZombies = _serverEvents.GetAllSubscriptionInfos()

This method is returning active and zoombie subscriptions. There are cases when we cannot close/unregister some subscriptions info because maybe the user closed the browser or the client has stop working and is not sending anymore heartbeats.

The expired zombie Redis subscriptions are only removed on Startup.

I’ve made the UnRegisterExpiredSubscriptions API public so can also unregister them periodically, e.g. before calling GetAllSubscriptionInfos(), e.g:

((RedisServerEvents)_serverEvents).UnRegisterExpiredSubscriptions();

This change is available from v5.8.1 that’s now available on MyGet.