public static RedisStorage UseRedisStorage(
     this IBootstrapperConfiguration configuration)
 {
     var storage = new RedisStorage();
     configuration.UseStorage(storage);
     return storage;
 }
 public static IGlobalConfiguration<RedisStorage> UseRedisStorage(this IGlobalConfiguration configuration, ConfigurationOptions Options, int db, string Prefix)
 {
     if (configuration == null) throw new ArgumentNullException("configuration");
     if (Options == null) throw new ArgumentNullException("Options");
     var storage = new RedisStorage(Options, db, Prefix);
     return configuration.UseStorage(storage);
 }
 public static IGlobalConfiguration<RedisStorage> UseRedisStorage(this IGlobalConfiguration configuration, string OptionString)
 {
     if (configuration == null) throw new ArgumentNullException("configuration");
     if (OptionString == null) throw new ArgumentNullException("OptionString");
     var storage = new RedisStorage(OptionString);
     return configuration.UseStorage(storage);
 }
示例#4
0
        public static RedisStorage UseRedisStorage(
            this IBootstrapperConfiguration configuration)
        {
            var storage = new RedisStorage();

            configuration.UseStorage(storage);
            return(storage);
        }
        public static IGlobalConfiguration<RedisStorage> UseRedisStorage(this IGlobalConfiguration configuration, ConfigurationOptions Options, RedisStorageOptions HangfireOptions)
        {
            if (configuration == null) throw new ArgumentNullException("configuration");
            if (Options == null) throw new ArgumentNullException("Options");
            if (HangfireOptions == null) throw new ArgumentNullException("HangfireOptions");

            var storage = new RedisStorage(Options, HangfireOptions);
            return configuration.UseStorage(storage);
        }
        public static RedisStorage UseRedisStorage(
            this IBootstrapperConfiguration configuration,
            string OptionString,
            int db)
        {
            var storage = new RedisStorage(OptionString, db);
            configuration.UseStorage(storage);

            return storage;
        }
示例#7
0
        public static RedisStorage UseRedisStorage(
            this IBootstrapperConfiguration configuration,
            string OptionString,
            int db)
        {
            var storage = new RedisStorage(OptionString, db);

            configuration.UseStorage(storage);

            return(storage);
        }
示例#8
0
        public static IGlobalConfiguration <RedisStorage> UseRedisStorage(this IGlobalConfiguration configuration, ConfigurationOptions Options)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException("configuration");
            }
            if (Options == null)
            {
                throw new ArgumentNullException("Options");
            }
            var storage = new RedisStorage(Options);

            return(configuration.UseStorage(storage));
        }
示例#9
0
        public static IGlobalConfiguration <RedisStorage> UseRedisStorage(this IGlobalConfiguration configuration, string OptionString, int db, string Prefix)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException("configuration");
            }
            if (OptionString == null)
            {
                throw new ArgumentNullException("OptionString");
            }
            var storage = new RedisStorage(OptionString, db, Prefix);

            return(configuration.UseStorage(storage));
        }
示例#10
0
        public static IGlobalConfiguration <RedisStorage> UseRedisStorage(this IGlobalConfiguration configuration, string OptionString, RedisStorageOptions HangfireOptions)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException("configuration");
            }
            if (OptionString == null)
            {
                throw new ArgumentNullException("OptionString");
            }
            if (HangfireOptions == null)
            {
                throw new ArgumentNullException("HangfireOptions");
            }
            var storage = new RedisStorage(OptionString, HangfireOptions);

            return(configuration.UseStorage(storage));
        }
 public RedisMonitoringApi(RedisStorage Redis)
 {
     this.Redis = Redis;
 }