예제 #1
0
 protected void Dispose(RedisClient redisClient)
 {
     if (redisClient == null)
     {
         return;
     }
     try
     {
         redisClient.DisposeConnection();
     }
     catch (Exception ex)
     {
         Log.Error(string.Format(
                       "Error when trying to dispose of RedisClient to host {0}:{1}",
                       redisClient.Host, redisClient.Port), ex);
     }
 }
		protected void Dispose(RedisClient redisClient)
		{
			if (redisClient == null) return;
			try
			{
				redisClient.DisposeConnection();
			}
			catch (Exception ex)
			{
				Log.Error(string.Format(
					"Error when trying to dispose of RedisClient to host {0}:{1}",
					redisClient.Host, redisClient.Port), ex);
			}
		}