RuntimeApps.UserConfig 1.2.0

dotnet add package RuntimeApps.UserConfig --version 1.2.0
NuGet\Install-Package RuntimeApps.UserConfig -Version 1.2.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RuntimeApps.UserConfig" Version="1.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RuntimeApps.UserConfig --version 1.2.0
#r "nuget: RuntimeApps.UserConfig, 1.2.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last updated
1.2.0 162 2/6/2024
1.1.1 99 1/28/2024
1.1.0 86 1/28/2024
1.0.0 85 1/26/2024