public Resque(string host) { this.Redis = new RedisClient(host); this.FailureManager = new FailureManager(this); this._stat = new Stat(Redis); }
public Worker(string redisHost, params string[] queues) { this._resque = new Resque(redisHost); this._stat = new Stat(Redis); if (queues.Contains("*")) _queues = _resque.Queues().Select(s => s.QueueName.Split(':').Last()).ToArray(); else this._queues = queues; }