VersaTul.Configurations 1.0.16

Prefix Reserved
dotnet add package VersaTul.Configurations --version 1.0.16                
NuGet\Install-Package VersaTul.Configurations -Version 1.0.16                
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="VersaTul.Configurations" Version="1.0.16" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VersaTul.Configurations --version 1.0.16                
#r "nuget: VersaTul.Configurations, 1.0.16"                
#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 VersaTul.Configurations as a Cake Addin
#addin nuget:?package=VersaTul.Configurations&version=1.0.16

// Install VersaTul.Configurations as a Cake Tool
#tool nuget:?package=VersaTul.Configurations&version=1.0.16                

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 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 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last updated
1.0.16 201 12/10/2024
1.0.15 530 4/5/2024
1.0.14 243 4/4/2024
1.0.13 244 4/4/2024
1.0.12 256 3/1/2024
1.0.11 292 2/1/2024
1.0.10 594 1/15/2024
1.0.9 461 1/11/2024
1.0.8 881 7/22/2023