public void Start() { _logger.LogInformation($"Connecting to redis queue url: {_config.GetValue<string>("Redis:Url")}"); // Create subscriber var pubsub = _redisStore.GetConnection().GetSubscriber(); // Subscriber subscribes to a channel var redisChannel = _config.GetValue <string>("Redis:Channel"); pubsub.Subscribe(redisChannel, (channel, message) => SaveVote(message)); }