Kryptic.Daemon.Client
1.1.1
dotnet add package Kryptic.Daemon.Client --version 1.1.1
NuGet\Install-Package Kryptic.Daemon.Client -Version 1.1.1
<PackageReference Include="Kryptic.Daemon.Client" Version="1.1.1" />
<PackageVersion Include="Kryptic.Daemon.Client" Version="1.1.1" />
<PackageReference Include="Kryptic.Daemon.Client" />
paket add Kryptic.Daemon.Client --version 1.1.1
#r "nuget: Kryptic.Daemon.Client, 1.1.1"
#:package Kryptic.Daemon.Client@1.1.1
#addin nuget:?package=Kryptic.Daemon.Client&version=1.1.1
#tool nuget:?package=Kryptic.Daemon.Client&version=1.1.1
Kryptic.Daemon.Client (.NET)
The Kryptic daemon client for .NET. One line wires the whole integration:
using Kryptic;
var builder = WebApplication.CreateBuilder(args);
builder.Configuration.AddKryptic(); // that's it
var app = builder.Build();
When the environment is Development (ASPNETCORE_ENVIRONMENT or DOTNET_ENVIRONMENT),
AddKryptic() finds kryptic.json, fetches the project's secrets from the local Kryptic
daemon, and exposes them through IConfiguration, IOptions<T> and
Environment.GetEnvironmentVariable(). In any other environment it is a no-op, and it
never throws - no daemon just means your app starts with the configuration it already has.
dotnet add package Kryptic.Daemon.Client
Targets netstandard2.0, net6.0 and net8.0 - usable from .NET Framework 4.6.2+
and every .NET Core / .NET version, with the lowest workable
Microsoft.Extensions.Configuration dependency per target so legacy apps are never
forced to upgrade their configuration stack.
Options
builder.Configuration.AddKryptic(options =>
{
options.Environment = "staging"; // override the environment
options.SocketTimeoutMs = 2000; // daemon connection timeout
options.FallbackSilently = true; // suppress the warning when the daemon is absent
options.ProjectId = "proj_override"; // override kryptic.json
});
Environment variables always win: KRYPTIC_PROJECT_ID, KRYPTIC_ENV,
KRYPTIC_SOCKET_PATH, KRYPTIC_TIMEOUT_MS, KRYPTIC_DISABLED, KRYPTIC_SILENT.
Injected values never overwrite environment variables that are already set.
Protocol: see daemon/PROTOCOL.md. License: Apache-2.0.
dotnet test
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. 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 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 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Extensions.Configuration (>= 2.1.1)
- System.Text.Json (>= 8.0.5)
-
net6.0
- Microsoft.Extensions.Configuration (>= 6.0.1)
-
net8.0
- Microsoft.Extensions.Configuration (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.