magic.lambda.config
This project provides configuration settings slots for Magic. The project provides the following slots, allowing you to retrieve configuration settings from your “appsettings.json” configuration file, in addition to saving and loading your configuration file.
- [config.get] - Returns a configuration value from your configuration file with the specified key
- [config.section] - Returns the specified configuration section from your configuration file with the specified key
- [config.load] - Loads your “appsettings.json” file and returns as a string
- [config.save] - Saves your “appsettings.json” file, sanity checking it’s valid JSON before persisting your file