public WorkerRecycler(string taskHub, ConnectionMultiplexer connection)
 {
     this.taskHub                  = taskHub;
     this.redisConnection          = connection;
     this.workerSetKey             = RedisKeyNameResolver.GetWorkerSetKey(this.taskHub);
     this.incomingActivityQueueKey = RedisKeyNameResolver.GetTaskActivityIncomingQueueKey(this.taskHub);
     this.logger = new RedisLogger(this.redisConnection, this.taskHub);
 }
        private void RegisterWorker()
        {
            IDatabase database     = this.redisConnection.GetDatabase();
            string    workerSetKey = RedisKeyNameResolver.GetWorkerSetKey(this.settings.TaskHubName);

            database.SetAdd(workerSetKey, this.workerGuid);

            // TODO: Set up ping background job for multi-worker scenario
        }