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 Updated 21 repo stars

File contents

nice3point/revit-skills commit aeb028bf2c

Frequently asked questions

npx get-skill add nice3point/binding-and-validating-options