RuntimeApps.UserConfig
1.2.0
dotnet add package RuntimeApps.UserConfig --version 1.2.0
NuGet\Install-Package RuntimeApps.UserConfig -Version 1.2.0
<PackageReference Include="RuntimeApps.UserConfig" Version="1.2.0" />
paket add RuntimeApps.UserConfig --version 1.2.0
#r "nuget: RuntimeApps.UserConfig, 1.2.0"
// Install RuntimeApps.UserConfig as a Cake Addin #addin nuget:?package=RuntimeApps.UserConfig&version=1.2.0 // Install RuntimeApps.UserConfig as a Cake Tool #tool nuget:?package=RuntimeApps.UserConfig&version=1.2.0
RuntimeApps.UserConfig
Many application need a part to save a retrive user settings. This part is usally common in many applications. RuntimeApps.UserConfig provide a place to set and get the user settings. Also, a default config can be set for all users. Default configs can be changed by admin.
Install
Their is 3 package to install based on your need:
RuntimeApps.UserConfig
This package is the main package and should be installed everywhere you want to use IUserConfigService
.
RuntimeApps.UserConfig.EntityFrameworkCore
This package is the implementation of IUserConfigStore
with Entity Framework Core which manage DB part of user configs. If you want to implement your own store part, it is not required, otherwise it should be added to your DB layer.
RuntimeApps.UserConfig.AspNet
This package has an implementation of APIs for user configs. It should be added to your ASP.Net project if you want to use user config APIs.
Interfaces
If you want to change the behavier of this package, you can reimplment this interfaces and added to DI:
- IUserConfigService: The main implementation of user configs
- IUserConfigValidation: Validate key and value of input models. Implement if you need cosutom validations.
- IUserConfigCache: Cashe the user configs in memory
- IUserConfigStore: Store of user config
- IUserConfigValueSerializer: The value serializer
- DbUserConfigEntityConfiguration: Entity framework configuration for DbUserConfigModel
License
Distributed under the MIT License. See LICENSE for more information.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net8.0
- Microsoft.Extensions.Caching.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Options (>= 8.0.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on RuntimeApps.UserConfig:
Package | Downloads |
---|---|
RuntimeApps.UserConfig.EntityFrameworkCore
Package Description |
|
RuntimeApps.UserConfig.AspNet
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.