Skip to content
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

Add missing option validation #4260

Merged
merged 1 commit into from
Aug 10, 2023
Merged

Add missing option validation #4260

merged 1 commit into from
Aug 10, 2023

Conversation

geeknoid
Copy link
Member

@geeknoid geeknoid commented Aug 9, 2023

null

Microsoft Reviewers: Open in CodeFlow

@ghost ghost assigned geeknoid Aug 9, 2023
@@ -79,7 +80,7 @@ private static void CheckNames(string[] names)

private static void ConfigureOption(this IServiceCollection services, Action<LatencyContextRegistrationOptions> action)
{
_ = services.AddOptions<LatencyContextRegistrationOptions>();
_ = services.AddValidatedOptions<LatencyContextRegistrationOptions, LatencyContextRegistrationOptionsValidator>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need the options type to be public at all?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I asked Ananth for feedback on that. Maybe we should hide it, we'll see what he ssys.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

He's OOF, so it'll take a while. We can address this in a separate PR.

@geeknoid geeknoid merged commit 184223b into main Aug 10, 2023
6 checks passed
@geeknoid geeknoid deleted the geeknoid/latency branch August 10, 2023 21:32
@ghost ghost added this to the 8.0 RC1 milestone Aug 10, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Sep 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants