Pandatech.PandaVaultClient
4.0.1
See the version list below for details.
dotnet add package Pandatech.PandaVaultClient --version 4.0.1
NuGet\Install-Package Pandatech.PandaVaultClient -Version 4.0.1
<PackageReference Include="Pandatech.PandaVaultClient" Version="4.0.1" />
paket add Pandatech.PandaVaultClient --version 4.0.1
#r "nuget: Pandatech.PandaVaultClient, 4.0.1"
// Install Pandatech.PandaVaultClient as a Cake Addin #addin nuget:?package=Pandatech.PandaVaultClient&version=4.0.1 // Install Pandatech.PandaVaultClient as a Cake Tool #tool nuget:?package=Pandatech.PandaVaultClient&version=4.0.1
PandaVaultClient
PandaVaultClient is an internal NuGet package designed to retrieve and apply configurations from an PandaVault service, to your .NET projects. This package offers a seamless way to integrate and manage configurations securely within your applications.
Features
- Configuration Retrieval: Fetches configuration data from an internal service using HTTP requests with secret authentication.
- Configuration Application: Applies the fetched configuration data to your .NET projects using
Microsoft's
Microsoft.Extensions.Configuration
. - Configuration Validation: Validates that there are no required configurations that have been left blank. If there
are, the application will not start. To require some configuration to be required, add
"**"
as the value for the key.
Installation
PandaVaultClient can be installed via NuGet Package Manager or by adding the following package reference to your project:
dotnet add package Pandatech.PandaVaultClient
Usage
Basic Configuration Retrieval
To use PandaVaultClient within your project, first, ensure you have the necessary environment variables set for the configuration service URL and secret:
// Set environment variables
Environment.SetEnvironmentVariable("PANDAVAULT_URL", "Your_PandaVault_URL");
Environment.SetEnvironmentVariable("PANDAVAULT_SECRET", "Your_PandaVault_Secret");
After setting the environment variables, register the PandaVaultClient service within your project's Program.cs
file:
Program.cs
using PandaVaultClient;
var builder = WebApplication.CreateBuilder(args);
builder.Configuration.AddPandaVault(); // Adding PandaVaultConfigurationSource
var app = builder.Build();
app.Run();
License
Pandatech.PandaVaultClient is licensed under the MIT License.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. |
-
net9.0
- Microsoft.AspNetCore.OpenApi (>= 9.0.0)
- Pandatech.ResponseCrafter (>= 5.0.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Pandatech.PandaVaultClient:
Package | Downloads |
---|---|
Pandatech.SharedKernel
Pandatech.SharedKernel provides centralized configurations, utilities, and extensions for ASP.NET Core projects. For more information refere to readme.md document. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
4.0.3 | 120 | 11/26/2024 |
4.0.2 | 88 | 11/26/2024 |
4.0.1 | 87 | 11/26/2024 |
4.0.0 | 128 | 11/21/2024 |
3.1.0 | 242 | 3/18/2024 |
3.0.6 | 120 | 3/17/2024 |
3.0.5 | 367 | 12/18/2023 |
3.0.4 | 152 | 12/14/2023 |
3.0.3 | 178 | 11/29/2023 |
3.0.2 | 169 | 11/29/2023 |
3.0.1 | 165 | 11/28/2023 |
2.1.1 | 139 | 11/26/2023 |
2.1.0 | 134 | 11/26/2023 |
2.0.0 | 165 | 11/25/2023 |
1.0.0 | 169 | 11/15/2023 |
fixing error messages to response crafter