public RedisAutoscalingRule(Configuration configuration, RedisAutoscalingAgent redisAutoscalingAgent, IRedisInstance primaryRedisInstance, IRedisInstance secondaryRedisInstance) : base(configuration) { Contract.Assert(primaryRedisInstance != secondaryRedisInstance); _configuration = configuration; _redisAutoscalingAgent = redisAutoscalingAgent; _primaryRedisInstance = primaryRedisInstance; _secondaryRedisInstance = secondaryRedisInstance; }