Twitter

Categories

IOptions

IOptions

The options pattern uses classes to represent groups of related settings. Options also provide a mechanism to validate configuration data. It was introduced with .NET Core. It gives you a nice separation of concerns and it adheres to the Interface Segregation Principle (ISP).