The service provider given to AddRedisQueryStorage is scoped to the schema
The service provider given to .AddRedisQueryStorage(sp => sp.GetRequiredService<IRedisConnectionProvider>().GetConnection().GetDatabase()) only has access to "schema services" so it cannot resolve IRedisConnectionProvider
A workaround is to use sp.GetApplicationService<IRedisConnectionProvider> instead.
I have a similar issue where I do .AddErrorFilter and the error filter doesn't have access to the application's IHttpContextAccessor.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@AlexKubiesa Did you get it to work with sp.GetApplicationService<YourDependency>
Yes, I did. Thanks for checking 😃
This issue is fixed in 13.