VersaTul.Configurations
1.0.14
Prefix Reserved
See the version list below for details.
dotnet add package VersaTul.Configurations --version 1.0.14
NuGet\Install-Package VersaTul.Configurations -Version 1.0.14
<PackageReference Include="VersaTul.Configurations" Version="1.0.14" />
paket add VersaTul.Configurations --version 1.0.14
#r "nuget: VersaTul.Configurations, 1.0.14"
// Install VersaTul.Configurations as a Cake Addin #addin nuget:?package=VersaTul.Configurations&version=1.0.14 // Install VersaTul.Configurations as a Cake Tool #tool nuget:?package=VersaTul.Configurations&version=1.0.14
Configuration
Configuration is a project that enables the ability to get the values of the specified keys stored in the settings dictionary. It is based on the DOTNET IConfiguration interface and can be used in VersaTul projects or other custom projects.
Installation
To use Configuration, first install it using nuget:
nuget install Configuration
Usage
To use Configuration, you need to inherit from the abstract classes Configuration
and AppConfiguration
, and implement the IConfiguration
and IAppConfiguration
interfaces. Then, you can use the Get<T>
and GetOrDefault<T>
methods to access the values of the keys stored in the settings dictionary.
For example:
using Configuration;
public class MyConfiguration : Configuration, IConfiguration
{
public MyConfiguration(string configFilePath) : base(configFilePath) { }
public string Name => Get<string>();
public int Age => GetOrDefault<int>();
}
public class MyAppConfiguration : AppConfiguration, IAppConfiguration
{
public MyAppConfiguration(string configFilePath) : base(configFilePath) { }
public MyConfiguration MyConfig => Get<MyConfiguration>();
}
Documentation
For more information, please refer to the official documentation.
License
Configuration is licensed under the MIT License.
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. |
-
net8.0
- VersaTul.Extensions (>= 1.0.12)
NuGet packages (8)
Showing the top 5 NuGet packages that depend on VersaTul.Configurations:
Package | Downloads |
---|---|
VersaTul.Data.Sql
The VersaTul Data Sql project provides the ability to quickly create database access objects, usable on any suppporting SQL databases. This project is built on top of the System.Data.Common namespace and provides the functionality to quickly call stored procedures or plain text sql queries, then map the result into data objects using the provided helper methods. |
|
VersaTul.Logger.File
The VersaTul Logger File project provides the functionality needed to performing logging in a flat file. This project implements the ILogger interface from the VersaTul Logger project. |
|
VersaTul.Data.MongoDB
The VersaTul Data MongoDB project provides functionality for working with Mongo Databases. The project uses the repository design pattern to provide the functionality to Fetch, Add, Update, or Delete data. |
|
VersaTul.Mailer
The VersaTul Mailer project provides the functionality to send emails messages. This project uses the SMTP protocol to transmit e-mail to a mail receiver. |
|
VersaTul.Caching
The VersaTul Caching project is designed to provide a simplfied caching interface with the ability to change the underlining caching engine easily and quickly. The default cache engine is built on top of the Microsoft Extensions Caching Memory class, which provides an in memory caching store. This implementation can be easily replaced using the interface provided. |
GitHub repositories
This package is not used by any popular GitHub repositories.