Version 11.1.0
ONIXLabs DotNET Library 11.1.0
We are excited to announce the release of ONIXLabs .NET Library version 11.1.0, now available on NuGet.
Core Updates
The entire library now builds against .NET 8.0 and .NET 9.0, therefore supporting the latest LTS and STS releases of the .NET SDK.
The Result<T> class now includes a GetValue method with an out parameter. This can be used to obtain success values inline; for example:
if (call().GetValue(out var value) is Failure<object> failure)
return failure; // Return if call() failed...
// ...or continue with success value in scopeThere are also extension methods to allow any type of value to be wrapped as a Result<T> instance; for example:
return value.ToSuccessResult();
return task.ToSuccessResultAsync(cancellationToken);
Security.Cryptography Updates
NamedHash now implements ISpanParsable<NamedHash>.
PublicKey now implements GetHash, which returns a Hash representation of a public key instance.