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

IOptions documentation is missing references/mentioning about AddOptionsWithValidateOnStart #39089

Closed
PureKrome opened this issue Jan 11, 2024 · 0 comments · Fixed by #39254
Closed
Assignees
Labels
doc-enhancement Improve the current content [org][type][category] dotnet-fundamentals/svc in-pr This issue will be closed (fixed) by an active pull request. okr-freshness OKR: Freshness of content Pri1 High priority, do before Pri2 and Pri3 📌 seQUESTered Identifies that an issue has been imported into Quest.

Comments

@PureKrome
Copy link

PureKrome commented Jan 11, 2024

Type of issue

Missing information

Description

👋🏻 G'Day!

Recently, I learnt that there is a way to validate your IOptions on startup with the new .NET 8 IOptions configuration / IValidateOptions. This new feature is awesome but there is no documentation about how to use the new IValidateOptions + using this validation on startup.

It was only when I asked the question that I was lucky enough to be directed to the very hidden method.

It would be VERY HELPFUL to include a NOTE in the doc's (for this page) about validating the IOptions on startup with the AddOptionsWithValidateOnStart method when registering an IOptions class.

Page URL

https://learn.microsoft.com/en-us/dotnet/core/extensions/options

Content source URL

https://github.com/dotnet/docs/blob/main/docs/core/extensions/options.md

Document Version Independent Id

00449cdc-b8fc-a9ff-3f20-0ef0994db354

Article author

@IEvangelist

Metadata

  • ID: 433988ea-fda9-aa83-f6ee-221a5521a422
  • Product: dotnet-fundamentals

Associated WorkItem - 202719

@issues-automation issues-automation bot added the Pri1 High priority, do before Pri2 and Pri3 label Jan 11, 2024
@IEvangelist IEvangelist self-assigned this Jan 22, 2024
@IEvangelist IEvangelist added doc-enhancement Improve the current content [org][type][category] okr-freshness OKR: Freshness of content 🗺️ reQUEST Triggers an issue to be imported into Quest. labels Jan 22, 2024
@dotnet-bot dotnet-bot removed ⌚ Not Triaged Not triaged labels Jan 22, 2024
@github-actions github-actions bot added 📌 seQUESTered Identifies that an issue has been imported into Quest. and removed 🗺️ reQUEST Triggers an issue to be imported into Quest. labels Jan 23, 2024
@dotnet-policy-service dotnet-policy-service bot added the in-pr This issue will be closed (fixed) by an active pull request. label Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-enhancement Improve the current content [org][type][category] dotnet-fundamentals/svc in-pr This issue will be closed (fixed) by an active pull request. okr-freshness OKR: Freshness of content Pri1 High priority, do before Pri2 and Pri3 📌 seQUESTered Identifies that an issue has been imported into Quest.
Projects
No open projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

3 participants