Oct 19, 2017
Dec 05, 2017
Options classes were added to the CMS Core packages as a way of separating the storage of settings, usually in a configuration file in the form of web.config, from their usage in services. This allows for a cleaner separation of concerns and enables support for .NET Standard.
All Options classes are registered in the service container and can a such be accessed by adding a constructor dependency to your service or MVC controller.
These Option classes were previously accessible in various Internal namespaces, but has now been reviewed and moved to the Public API.
Notable Options classes: