public RedisTransientMessageFactory(int retryAttempts, TimeSpan?requestTimeOut,
                                     IRedisClientsManager clientsManager)
 {
     this.ClientsManager = clientsManager ?? new BasicRedisClientManager();
     MessageService      = new RedisTransientMessageService(
         retryAttempts, requestTimeOut, this);
 }
		public RedisTransientMessageFactory(int retryAttempts, TimeSpan? requestTimeOut,
			IRedisClientsManager clientsManager)
		{
			this.ClientsManager = clientsManager ?? new BasicRedisClientManager();
			MessageService = new RedisTransientMessageService(
				retryAttempts, requestTimeOut, this);
		}
        public void Dispose()
        {
            if (this.MessageService != null)
            {
                this.MessageService.Dispose();
                this.MessageService = null;
            }

            if (this.ClientsManager != null)
            {
                this.ClientsManager.Dispose();
                this.ClientsManager = null;
            }
        }
		public void Dispose()
		{
			if (this.MessageService != null)
			{
				this.MessageService.Dispose();
				this.MessageService = null;
			}

			if (this.ClientsManager != null)
			{
				this.ClientsManager.Dispose();
				this.ClientsManager = null;
			}
		}