Soenneker.Enums.InitializationModes
11.0.74
Prefix Reserved
dotnet add package Soenneker.Enums.InitializationModes --version 11.0.74
NuGet\Install-Package Soenneker.Enums.InitializationModes -Version 11.0.74
<PackageReference Include="Soenneker.Enums.InitializationModes" Version="11.0.74" />
<PackageVersion Include="Soenneker.Enums.InitializationModes" Version="11.0.74" />
<PackageReference Include="Soenneker.Enums.InitializationModes" />
paket add Soenneker.Enums.InitializationModes --version 11.0.74
#r "nuget: Soenneker.Enums.InitializationModes, 11.0.74"
#:package Soenneker.Enums.InitializationModes@11.0.74
#addin nuget:?package=Soenneker.Enums.InitializationModes&version=11.0.74
#tool nuget:?package=Soenneker.Enums.InitializationModes&version=11.0.74
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 | net11.0 is compatible. |
-
net11.0
- Soenneker.Gen.EnumValues (>= 11.0.67)
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 |
|---|---|---|
| 11.0.74 | 35 | 11/14/2026 |
| 11.0.73 | 8,719 | 11/11/2026 |
| 11.0.72 | 50 | 11/11/2026 |
| 11.0.71 | 134,332 | 10/26/2026 |
| 11.0.70 | 113 | 10/26/2026 |
| 4.0.69 | 63,115 | 10/15/2026 |
| 4.0.68 | 124 | 10/14/2026 |
| 4.0.67 | 113 | 10/14/2026 |
| 4.0.66 | 344 | 10/14/2026 |
| 4.0.65 | 1,655 | 10/14/2026 |
| 4.0.60 | 9,137 | 10/13/2026 |
| 4.0.59 | 116 | 10/12/2026 |
| 4.0.57 | 8,538 | 10/12/2026 |
| 4.0.55 | 24,307 | 10/11/2026 |
| 4.0.54 | 86,929 | 9/30/2026 |
| 4.0.53 | 42,029 | 9/25/2026 |
| 4.0.52 | 115 | 9/24/2026 |
| 4.0.51 | 56,342 | 9/15/2026 |
| 4.0.50 | 119 | 9/15/2026 |
| 4.0.49 | 66,388 | 9/12/2026 |
Update dependency Soenneker.Gen.EnumValues to 11.0.67 (#268)