nightmaregaurav.staticappsettings
1.0.2
See the version list below for details.
dotnet add package nightmaregaurav.staticappsettings --version 1.0.2
NuGet\Install-Package nightmaregaurav.staticappsettings -Version 1.0.2
<PackageReference Include="nightmaregaurav.staticappsettings" Version="1.0.2" />
paket add nightmaregaurav.staticappsettings --version 1.0.2
#r "nuget: nightmaregaurav.staticappsettings, 1.0.2"
// Install nightmaregaurav.staticappsettings as a Cake Addin #addin nuget:?package=nightmaregaurav.staticappsettings&version=1.0.2 // Install nightmaregaurav.staticappsettings as a Cake Tool #tool nuget:?package=nightmaregaurav.staticappsettings&version=1.0.2
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 static APIs to get configuration settings from builder.Configuration
.
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 need to be configured in program.cs first:
using StaticAppSettings;
// ...
AppSettingsHelper.Configure(builder.Configuration);
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)
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.