A .NET library for managing application settings, supporting JSON serialization, default and user-specific settings, and integration with dependency injection.
$ dotnet add package Oakrey.Applications.SettingsOverview of the "Settings" Project The "Settings" project is a .NET 8 library designed to manage application settings efficiently. It provides functionality for loading, saving, and managing both persistent and volatile settings, with support for JSON serialization and dependency injection.
SettingsService provides methods to load, save, and retrieve settings. Supports both persistent and volatile settings.
Uses JsonService for JSON-based serialization and deserialization of settings. Includes a custom SettingValueConverter for handling complex types during serialization.
Loads default settings from a predefined path. Saves user-specific settings to a configurable path.
SettingConfigurationExtension enables seamless integration with DI containers.
Integrated with Oakrey.Log for logging errors and tracing operations.
Implements ISettingsService for easy customization and testing.
Simplifies setting retrieval and storage by using the caller's member name as the key.
You can install the package via NuGet Package Manager, Package Manager Console or the .NET CLI.
Oakrey.Applications.Settings and click Install.Run the following command in your terminal:
dotnet add package Oakrey.Applications.Settings
Run the following command in your Package Manager Console:
Install-Package Oakrey.Applications.Settings
Contributions are welcome! Feel free to open issues or submit pull requests to improve the package.
This project is licensed under the MIT License. See the LICENSE file for details.