Soenneker.Enums.InitializationModes
4.0.45
Prefix Reserved
dotnet add package Soenneker.Enums.InitializationModes --version 4.0.45
NuGet\Install-Package Soenneker.Enums.InitializationModes -Version 4.0.45
<PackageReference Include="Soenneker.Enums.InitializationModes" Version="4.0.45" />
<PackageVersion Include="Soenneker.Enums.InitializationModes" Version="4.0.45" />
<PackageReference Include="Soenneker.Enums.InitializationModes" />
paket add Soenneker.Enums.InitializationModes --version 4.0.45
#r "nuget: Soenneker.Enums.InitializationModes, 4.0.45"
#:package Soenneker.Enums.InitializationModes@4.0.45
#addin nuget:?package=Soenneker.Enums.InitializationModes&version=4.0.45
#tool nuget:?package=Soenneker.Enums.InitializationModes&version=4.0.45
Soenneker.Enums.InitializationModes
A string-backed enum-value type for selecting an initializer signature by execution style and accepted arguments.
Install
dotnet add package Soenneker.Enums.InitializationModes
Usage
using Soenneker.Enums.InitializationModes;
InitializationMode mode = InitializationMode.AsyncKeyToken;
string wireValue = mode.Value; // "AsyncKeyToken"
if (InitializationMode.TryFromValue(input, out InitializationMode? parsed))
{
// Select the initializer signature represented by parsed
}
| Value | Async | Key | Cancellation token |
|---|---|---|---|
Async |
Yes | No | No |
AsyncKey |
Yes | Yes | No |
AsyncKeyToken |
Yes | Yes | Yes |
Sync |
No | No | No |
SyncKey |
No | Yes | No |
SyncKeyToken |
No | Yes | Yes |
System.Text.Json serializes the type as the shown string value. FromValue throws for unknown input; use TryFromValue at configuration or request boundaries. FromName and TryFromName are also generated.
This package describes an initialization shape; it does not invoke an initializer, store a key, create a cancellation token, or enforce cancellation. The consuming component defines the key type and the exact semantics of each mode.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- Soenneker.Gen.EnumValues (>= 4.0.46)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Enums.InitializationModes:
| Package | Downloads |
|---|---|
|
Soenneker.Dictionaries.SingletonKeys
An externally initializing singleton dictionary that uses double-check asynchronous locking, with optional async and sync disposal |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.45 | 32 | 8/30/2026 |
| 4.0.44 | 40 | 8/30/2026 |
| 4.0.43 | 41 | 8/30/2026 |
| 4.0.42 | 37 | 8/29/2026 |
| 4.0.41 | 76,202 | 8/21/2026 |
| 4.0.40 | 30,213 | 8/18/2026 |
| 4.0.39 | 89 | 8/18/2026 |
| 4.0.38 | 106,000 | 8/7/2026 |
| 4.0.37 | 87 | 8/7/2026 |
| 4.0.36 | 29,694 | 7/28/2026 |
| 4.0.35 | 21,218 | 7/28/2026 |
| 4.0.34 | 101,893 | 7/16/2026 |
| 4.0.33 | 106 | 7/16/2026 |
| 4.0.32 | 132,705 | 7/3/2026 |
| 4.0.31 | 34,292 | 6/19/2026 |
| 4.0.30 | 22,755 | 6/19/2026 |
| 4.0.29 | 142,638 | 6/5/2026 |
| 4.0.28 | 114 | 6/5/2026 |
| 4.0.27 | 160,555 | 5/1/2026 |
| 4.0.26 | 38,301 | 4/22/2026 |
Update dependency Soenneker.Gen.EnumValues to 4.0.46 (#207)