Utilities for .NET applications and libraries: asynchronous initialization, cancellation and task helpers, argument validation, collection extensions, and configuration helpers.
Requires .NET 10 or later.
dotnet add package Cloudtoid.Frameworkusing Cloudtoid;
var settings = new AsyncLazy<string>(
() => File.ReadAllTextAsync("settings.json"));
string contents = await settings;AsyncLazy<T> starts initialization when the value is first requested and shares the resulting task with subsequent callers.
- Task timeout, cancellation, and fault-logging helpers.
Contractargument and state checks.ReadOnlyValueList<T>and collection extensions.- String, path, HTTP, and hash helpers.
- Configuration and dependency-injection extensions.
- Date/time and GUID provider interfaces for tests.
The package also includes build configuration for Cloudtoid's banned API list.