public RedisTransientMessageService(int retryAttempts, TimeSpan?requestTimeOut,
                                     RedisTransientMessageFactory messageFactory)
     : base(retryAttempts, requestTimeOut)
 {
     messageFactory.ThrowIfNull("messageFactory");
     this.messageFactory = messageFactory;
 }
		public RedisTransientMessageService(int retryAttempts, TimeSpan? requestTimeOut,
			RedisTransientMessageFactory messageFactory)
			: base(retryAttempts, requestTimeOut)
		{
			messageFactory.ThrowIfNull("messageFactory");
			this.messageFactory = messageFactory;
		}
		private void ResetConnections()
		{
			if (clientManager != null)
			{
				clientManager.Dispose();
				clientManager = null;
			}

			if (factory != null)
			{
				factory.Dispose();
				factory = null;
			}

			clientManager = new BasicRedisClientManager(TestConfig.MasterHosts);
			factory = new RedisTransientMessageFactory(clientManager);
		}