-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Redis with sentinels #11617 #11637
Conversation
Maybe we could keep the same pattern in the startup, meaning still doing a parse in a try/catch but just to validate the config string once and before registering the services, so here the only update would be to set Then, looks good to parse it in the ConfigurationOptions getter. What you think about this comment dotnet/aspnetcore#28367 (comment) saying the following
|
I check it:
|
I use
I think |
Okay cool, thanks for trying it.
Yes but still useful to do as a first level check before registering the related services. But yes keep the change to set the Configuration string
Then yes, also keep this change. Need to leave, will look at it again this night. |
{ | ||
_logger.LogError("'Redis' features are not active on tenant '{TenantName}' as the 'Configuration' string is missing or invalid: " + e.Message, _tenant); | ||
_logger.LogError("'Redis' features are not active on tenant '{TenantName}' as the 'Configuration' string is missing", _tenant); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you keep the error message in a different param? That might help investigate failures
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. I kept it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mazuryv I approved
Just 2 comment suggestions to be applied.
@mazuryv I approved Just 2 comment suggestions to be applied before merging Edited: Just committed the 2 little suggestions ;) |
/// <summary> | ||
/// The configuration string used to connect to Redis. | ||
/// </summary> | ||
public string Configuration { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last thing, please add a new line between each property, I can't edit your file.
Okay done, I could do it by making a suggested code and then committing it.
@mazuryv Last thing, please add a new line between each RedisOptions property, I can't edit your file. Okay done, I could do it by making a suggested code and then committing it. |
Sorry, I was offline. |
No problem
I already approved it. Only need to wait for the next triage ;) |
What are the breaking changes to document with this PR? |
There is no breaking change, we still generate |
PR is created.
Fixes #11617