FuelTaxAutomation.ConnectionStrings
1.0.16
A machine cental encrypted store for connectionStrings
Install-Package FuelTaxAutomation.ConnectionStrings -Version 1.0.16
dotnet add package FuelTaxAutomation.ConnectionStrings --version 1.0.16
<PackageReference Include="FuelTaxAutomation.ConnectionStrings" Version="1.0.16" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FuelTaxAutomation.ConnectionStrings --version 1.0.16
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FuelTaxAutomation.ConnectionStrings, 1.0.16"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install FuelTaxAutomation.ConnectionStrings as a Cake Addin
#addin nuget:?package=FuelTaxAutomation.ConnectionStrings&version=1.0.16
// Install FuelTaxAutomation.ConnectionStrings as a Cake Tool
#tool nuget:?package=FuelTaxAutomation.ConnectionStrings&version=1.0.16
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
What is ConnectionStrings?
it is a simple way for the FTA developers to centalize all of their connections stings in one place on the computer. Encrypted and secure.
How to set Encrypted ConnectionStrings on your machine...
Download ConnectionStringsUpdater.Executables
- Edit the appsettings.json file and make sure it includes your connection strings.
- Extract it and run FuelTaxAutomation.ConnectionStringsUpdater.exe as an Administrator.
- Run the FuelTaxAutomation.ConnectionStringUpdater.exe as an Administrator.
- Follow the instructions on the screen.
How to use ConnectionStrings in your (simple way)...
include FuelTaxAutomation.ConnectionStrings;
//Then to get the connection string from all your apps
var liveConnectionString = ConnectionString.GetByName("FuelTaxAutomation");
if (liveConnectionString == null)
{
Console.WriteLine("Connection string not found");
}
else
{
Console.WriteLine(liveConnectionString);
}
How to use ConnectionStrings in your (ConfigurationBuilder way)...
include FuelTaxAutomation.ConnectionStrings;
var builder = new ConfigurationBuilder()
//.AddJsonFile("appsettings.json", true, false) // here to show how you can stack them
.AddEnvironmentVariables("Encrypted_")//must be last to override the appsettings.json
.Build();
var liveConnectionString = ConnectionString.Decrypt(builder.GetConnectionString("FuelTaxAutomation"));
Console.WriteLine($"FuelTaxAutomation Connection string from environment variable: {liveConnectionString}");
What is ConnectionStrings?
it is a simple way for the FTA developers to centalize all of their connections stings in one place on the computer. Encrypted and secure.
How to set Encrypted ConnectionStrings on your machine...
Download ConnectionStringsUpdater.Executables
- Edit the appsettings.json file and make sure it includes your connection strings.
- Extract it and run FuelTaxAutomation.ConnectionStringsUpdater.exe as an Administrator.
- Run the FuelTaxAutomation.ConnectionStringUpdater.exe as an Administrator.
- Follow the instructions on the screen.
How to use ConnectionStrings in your (simple way)...
include FuelTaxAutomation.ConnectionStrings;
//Then to get the connection string from all your apps
var liveConnectionString = ConnectionString.GetByName("FuelTaxAutomation");
if (liveConnectionString == null)
{
Console.WriteLine("Connection string not found");
}
else
{
Console.WriteLine(liveConnectionString);
}
How to use ConnectionStrings in your (ConfigurationBuilder way)...
include FuelTaxAutomation.ConnectionStrings;
var builder = new ConfigurationBuilder()
//.AddJsonFile("appsettings.json", true, false) // here to show how you can stack them
.AddEnvironmentVariables("Encrypted_")//must be last to override the appsettings.json
.Build();
var liveConnectionString = ConnectionString.Decrypt(builder.GetConnectionString("FuelTaxAutomation"));
Console.WriteLine($"FuelTaxAutomation Connection string from environment variable: {liveConnectionString}");
Dependencies
-
.NETFramework 4.6.1
- No dependencies.
-
.NETFramework 4.8.1
- No dependencies.
-
net6.0
- No dependencies.
-
net8.0
- No dependencies.
Used By
NuGet packages (2)
Showing the top 2 NuGet packages that depend on FuelTaxAutomation.ConnectionStrings:
Package | Downloads |
---|---|
FuelTaxAutomation.Logging.Serilog
A simple pre-configured Serilog logger for AFTR.
|
|
ProMiles.FuelTaxAutomation.UseCases
Package Description
|