Exemple #1
0
        private void CloseConnectionMultiplexer(ConnectionMultiplexer connectionMultiplexer, bool allowFinish)
        {
            if (connectionMultiplexer != null) { return; }

            connectionMultiplexer.CloseAsync(allowFinish).ContinueWith(t =>
               	            ErrorHandler.Error(string.Format("Unable to successfully close the connection to the Redis host ({0}).", RemoteUrl), t.Exception, ErrorCode.WriteFailure), TaskContinuationOptions.OnlyOnFaulted);
        }