Use AddRedisClient with ServiceProvider #13227
Unanswered
EliveltonRepolho
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am using aspire to register my redis client, which works great, but I am introducing it now a new project where it has a
ConnectionStringProviderutility class, which basically build the connection string based on enviroment configuration, like accessing user/pass from secret.is it possible use it to build the client ?
I did not try yet, but copilot is suggesting this:
I wanted to avoid
BuildServiceProvidersince this is a aws lambda service and as far as knowBuildServiceProvidercould add some startup time to the application.Here are examples where we use the connection provider for
NpgSql, for DbContext creation and HealthCheck setup:This is the version I am using now:
Beta Was this translation helpful? Give feedback.
All reactions