Soenneker.Enums.InitializationModes
4.0.51
Prefix Reserved
dotnet add package Soenneker.Enums.InitializationModes --version 4.0.51
NuGet\Install-Package Soenneker.Enums.InitializationModes -Version 4.0.51
<PackageReference Include="Soenneker.Enums.InitializationModes" Version="4.0.51" />
<PackageVersion Include="Soenneker.Enums.InitializationModes" Version="4.0.51" />
<PackageReference Include="Soenneker.Enums.InitializationModes" />
paket add Soenneker.Enums.InitializationModes --version 4.0.51
#r "nuget: Soenneker.Enums.InitializationModes, 4.0.51"
#:package Soenneker.Enums.InitializationModes@4.0.51
#addin nuget:?package=Soenneker.Enums.InitializationModes&version=4.0.51
#tool nuget:?package=Soenneker.Enums.InitializationModes&version=4.0.51
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.51)
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.51 | 14,920 | 9/15/2026 |
| 4.0.50 | 69 | 9/15/2026 |
| 4.0.49 | 62,103 | 9/12/2026 |
| 4.0.48 | 92 | 9/12/2026 |
| 4.0.47 | 79,075 | 9/7/2026 |
| 4.0.46 | 47,255 | 9/4/2026 |
| 4.0.45 | 97,866 | 8/30/2026 |
| 4.0.44 | 106 | 8/30/2026 |
| 4.0.43 | 105 | 8/30/2026 |
| 4.0.42 | 99 | 8/29/2026 |
| 4.0.41 | 129,195 | 8/21/2026 |
| 4.0.40 | 30,242 | 8/18/2026 |
| 4.0.39 | 106 | 8/18/2026 |
| 4.0.38 | 106,215 | 8/7/2026 |
| 4.0.37 | 101 | 8/7/2026 |
| 4.0.36 | 29,744 | 7/28/2026 |
| 4.0.35 | 21,369 | 7/28/2026 |
| 4.0.34 | 101,923 | 7/16/2026 |
| 4.0.33 | 126 | 7/16/2026 |
| 4.0.32 | 132,817 | 7/3/2026 |
Update dependency Soenneker.Gen.EnumValues to 4.0.51 (#230)
Automatically merged