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 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(config, redisConfig)); }