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;
		}
        public RedisTransientMessageService(int retryAttempts, TimeSpan? requestTimeOut,
            RedisTransientMessageFactory messageFactory)
            : base(retryAttempts, requestTimeOut)
        {
            messageFactory.ThrowIfNull("messageFactory");

            this.factory = new RedisMessageQueueClientFactory(
                messageFactory.ClientsManager, messageFactory.OnMessagePublished);
        }
Exemple #4
0
        public RedisTransientMessageService(int retryAttempts, TimeSpan?requestTimeOut,
                                            RedisTransientMessageFactory messageFactory)
            : base(retryAttempts, requestTimeOut)
        {
            messageFactory.ThrowIfNull("messageFactory");

            this.factory = new RedisMessageQueueClientFactory(
                messageFactory.ClientsManager, messageFactory.OnMessagePublished);
        }
        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);
        }