I cannot re-connect to my Redis DB doing the following:
RedisConnection
called "connection"connection.Open().Wait();
connection.Close(true);
connection.Open().Wait();
an error is thrown "Connection is closed". I am aware the connection was closed but why I cannot re-open it?
The same happens if I instead of close the connection, shut down the Redis server, let the client raise the Closed
event, re-start the server, and then attempt to open the connection with connection.Open().Wait();
again. "Connection is closed" error is thrown.
What is wrong with my approach? I do not seem to be able to manage connection states properly with Booksleeve.
Thanks
It is not the expected usage that you open and close a BookSleeve connection.
Personally I'd only close it if I was reconfiguring the system at runtime, or the connection broke.