public CacheReceiver(RedisConfiguration config, string channelOrKey, string lastValueKeyName, TraceWriter trace)
 {
     _config = config;
     _channelOrKey = channelOrKey;
     _lastValueKeyName = lastValueKeyName;
     _trace = trace;
 }
        public RedisExtensionConfig(RedisConfiguration redisConfig)
        {
            if (redisConfig == null)
            {
                throw new ArgumentNullException("redisConfig");
            }

            _redisConfig = redisConfig;
        }
 public RedisTriggerBinding(ParameterInfo parameter, RedisAccount account, string channelOrKey, Mode mode, RedisConfiguration config, TraceWriter trace)
 {
     _parameter = parameter;
     _account = account;
     _channelOrKey = channelOrKey;
     _mode = mode;
     _config = config;
     _bindingDataProvider = BindingDataProvider.FromType(parameter.ParameterType);
     _trace = trace;
 }
        public RedisChannelListener(string channelOrKey, ITriggeredFunctionExecutor triggerExecutor, RedisConfiguration config, TraceWriter trace)
            : base()
        {
            _channelOrKey = channelOrKey;
            _triggerExecutor = triggerExecutor;
            _config = config;

            _redisProcessor = CreateProcessor(channelOrKey);
            _trace = trace;
        }
 public RedisCacheListener(string channelOrKey, ITriggeredFunctionExecutor triggerExecutor,
     RedisConfiguration config, TraceWriter trace)
     : base()
 {
     _channelOrKey = channelOrKey;
     _triggerExecutor = triggerExecutor;
     _config = config;
     _lastValueKeyName = _config.LastValueKeyNamePrefix + channelOrKey;
     _redisProcessor = CreateProcessor(channelOrKey);
     _trace = trace;
 }
        public static void UseRedis(this JobHostConfiguration config, TimeSpan checkCacheFrequency)
        {
            if (config == null)
            {
                throw new ArgumentNullException("config");
            }

            var redisConfig = new RedisConfiguration();
            redisConfig.CheckCacheFrequency = checkCacheFrequency;

            config.UseRedis(redisConfig);
        }
 public RedisTriggerAttributeBindingProvider(RedisConfiguration config, TraceWriter trace)
 {
     if (config == null)
     {
         throw new ArgumentNullException("config");
     }
     if (trace == null)
     {
         throw new ArgumentNullException("trace");
     }
     _config = config;
     _trace = trace;
 }
        public static void UseRedis(this JobHostConfiguration config, RedisConfiguration redisConfig)
        {
            if (config == null)
            {
                throw new ArgumentNullException("config");
            }

            if (redisConfig == null)
            {
                throw new ArgumentNullException("redisConfig");
            }

            config.RegisterExtensionConfigProvider(new RedisExtensionConfig(redisConfig));
        }
Example #9
0
        public RedisExtensionConfig(JobHostConfiguration config, RedisConfiguration redisConfig)
        {
            if (config == null)
            {
                throw new ArgumentNullException("config");
            }
            if (redisConfig == null)
            {
                throw new ArgumentNullException("redisConfig");
            }

            _nameResolver = config.NameResolver;
            _redisConfig  = redisConfig;
        }
 private CacheReceiver CreateReceiver(RedisConfiguration config, string channelOrKey, string lastValueKeyName)
 {
     return new CacheReceiver(config, channelOrKey, lastValueKeyName, _trace);
 }
 public PubSubReceiver(RedisConfiguration config, string channelName, TraceWriter trace)
 {
     _config = config;
     _channel = new RedisChannel(channelName, RedisChannel.PatternMode.Auto);
     _trace = trace;
 }
 private PubSubReceiver CreateReceiver(RedisConfiguration config, string channelOrKey)
 {
     return new PubSubReceiver(config, channelOrKey, _trace);
 }