コード例 #1
0
ファイル: RedisStorage.cs プロジェクト: hahmed/HangFire
        public RedisStorage(string hostAndPort, int db, RedisStorageOptions options)
        {
            HostAndPort = hostAndPort;
            Db = db;
            Options = options;

            _pooledManager = new PooledRedisClientManager(
                new []{ HostAndPort },
                new string[0],
                new RedisClientManagerConfig
                {
                    DefaultDb = Db,
                    MaxWritePoolSize = Options.ConnectionPoolSize
                });
        }
コード例 #2
0
ファイル: RedisStorage.cs プロジェクト: henningst/HangFire
        public RedisStorage(string hostAndPort, int db, RedisStorageOptions options)
        {
            if (hostAndPort == null) throw new ArgumentNullException("hostAndPort");
            if (options == null) throw new ArgumentNullException("options");

            HostAndPort = hostAndPort;
            Db = db;
            Options = options;

            _pooledManager = new PooledRedisClientManager(
                new []{ HostAndPort },
                new string[0],
                new RedisClientManagerConfig
                {
                    DefaultDb = Db,
                    MaxWritePoolSize = Options.ConnectionPoolSize
                });
        }
コード例 #3
0
ファイル: RedisStorage.cs プロジェクト: dlongest/HangFire
        public RedisStorage(string hostAndPort, int db, RedisStorageOptions options)
        {
            if (hostAndPort == null)
            {
                throw new ArgumentNullException("hostAndPort");
            }
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            HostAndPort = hostAndPort;
            Db          = db;
            Options     = options;

            _pooledManager = new PooledRedisClientManager(
                new [] { HostAndPort },
                new string[0],
                new RedisClientManagerConfig
            {
                DefaultDb        = Db,
                MaxWritePoolSize = Options.ConnectionPoolSize
            });
        }