Hi there,
We are using Microsofts Azure Redis service in our production environment.
Alongside that, we are using a pooled redis client manager with a custom redis client factory.
I could do this to set the PooledManager
in my RedisStorage
:
var fields = typeof(RedisStorage).GetFields(BindingFlags.NonPublic | BindingFlags.Instance);
var storage = new RedisStorage();
var pooledManagerField = fields.SingleOrDefault(x => x.Name == "_pooledManager");
pooledManagerField.SetValue(storage, new PooledRedisClientManager { RedisClientFactory = new MyRedisClientFactory() });
Not really something I would like to do ofcourse.
Is there a repository for Hangfire.Redis
where I can contribute or is there bether way of doing this?