Binding And Validating Options

Bind a configuration section to a typed options class and validate it at startup with the .NET options pattern. USE FOR: adding an options type, binding it from configuration, applying DataAnnotations or custom validation, and failing fast on invalid configuration with ValidateOnStart. DO NOT USE FOR: general host composition and the order of builder extensions (use configuring-dotnet-hosting).

nice3point aeb028b 4.1 KB Updated

File contents

nice3point/revit-skills/tree/main/plugins/dotnet-advanced/skills/binding-and-validating-options commit aeb028bf2c

Frequently asked questions

npx skillmds@latest add nice3point/binding-and-validating-options