Exemple #1
0
        public new void TestCleanup()
        {
            var container = GetConfiguredContainer();

            if (Redis)
            {
                RedisConnector redisConnector = container.Resolve <RedisConnector>();
                var            redis          = redisConnector.GetMultiplexer();
                foreach (var endpoint in redis.GetEndPoints())
                {
                    var server = redis.GetServer(endpoint);
                    server.FlushDatabase(DB_ID);
                }
            }
        }