Migrating from BookSleeve to StackExchange.Redis - Mapping Events

386 views Asked by At

There doesn’t seem to be a ‘closed’ event in Stackexchange.Redis, only a ‘connection failed’ event which indicates a temporary failure based on my understanding (and that is why there is also a ‘connection restored’ event?). Is this because StackExchange always retries when the connection is closed unexpectedly – is there an event to indicate when the connection is closed permanently?

1

There are 1 answers

4
Marc Gravell On

No, there is not currently an event for "closed permenantly", as the only time this would be used would be after Dispose() has been invoked, which is usually an intentional and known-time thing.

If there is a well-defined scenario where this would be useful, I'm not against adding one, but currently: I don't see the purpose.