nightmaregaurav.staticappsettings
1.0.1
See the version list below for details.
dotnet add package nightmaregaurav.staticappsettings --version 1.0.1
NuGet\Install-Package nightmaregaurav.staticappsettings -Version 1.0.1
<PackageReference Include="nightmaregaurav.staticappsettings" Version="1.0.1" />
paket add nightmaregaurav.staticappsettings --version 1.0.1
#r "nuget: nightmaregaurav.staticappsettings, 1.0.1"
// Install nightmaregaurav.staticappsettings as a Cake Addin #addin nuget:?package=nightmaregaurav.staticappsettings&version=1.0.1 // Install nightmaregaurav.staticappsettings as a Cake Tool #tool nuget:?package=nightmaregaurav.staticappsettings&version=1.0.1
StaticAppSettings
StaticAppSettings is a C# library that provides a convenient way to manage and access configuration settings in your ASP.NET Core application. This library is built on top of Microsoft.Extensions.Configuration
and offers thread-safe static APIs to get configuration settings from appsettings sources, such as JSON files and environment variables.
Features
- Centralized configuration management.
- Thread-safe initialization and access to configuration settings.
- Supports loading settings from JSON files and environment variables.
Usage
Here's how you can use StaticAppSettings to access your configuration settings: Install the package from NuGet.
using StaticAppSettings;
// ...
var connectionString = AppSettingsHelper.GetSection("ConnectionStrings:DefaultConnection").Value;
Configuration Sources
StaticAppSettings supports configuration from the following sources:
- JSON files (e.g.,
appsettings.json
andappsettings.{mode}.json
).
License
StaticAppSettings is released under the MIT License. You can find the full license details in the LICENSE file.
Made with ❤️ by NightmareGaurav.
Open For Contribution
We welcome contributions to the StaticAppSettings project! If you have suggestions, bug reports, or feature requests, please open an issue or submit a pull request on our GitHub repository. Let's make this project even better together!
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
-
net7.0
- Microsoft.Extensions.Configuration (>= 7.0.0)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 7.0.0)
- Microsoft.Extensions.Configuration.FileExtensions (>= 7.0.0)
- Microsoft.Extensions.Configuration.Json (>= 7.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on nightmaregaurav.staticappsettings:
Package | Downloads |
---|---|
nightmaregaurav.rediscachehelper
A C# utility library that provides caching functionality using the StackExchange.Redis library without DI. It simplifies the process of storing and retrieving data from a Redis cache, allowing for efficient and reliable caching of objects. |
GitHub repositories
This package is not used by any popular GitHub repositories.