You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additionally, there is some inconsistency in the way that we resolve a IConnectionMultiplexer in AddRedisQueryStorage and AddRedisSubscriptions. In one call we have to get a database, while in the other we don't.
The code below should not throw and should be able to resolve IConnectionMultiplexer. Additionally, I suggest removing the additional need to call .GetDatabase() in AddRedisQueryStorage.
services.AddSingleton<IConnectionMultiplexer>(ConnectionMultiplexer.Connect("localhost:6379"));// this will get the first registered multiplexer.
builder.AddRedisQueryStorage();
Describe the bug
If I remove
x.GetApplicationServices()
below, Hot Chocolate is unable to resolveIConnectionMultiplexer
and throws an exception.Additionally, there is some inconsistency in the way that we resolve a
IConnectionMultiplexer
inAddRedisQueryStorage
andAddRedisSubscriptions
. In one call we have to get a database, while in the other we don't.Expected behavior
The code below should not throw and should be able to resolve
IConnectionMultiplexer
. Additionally, I suggest removing the additional need to call.GetDatabase()
inAddRedisQueryStorage
.The text was updated successfully, but these errors were encountered: