Olve.Operations 0.32.2

dotnet add package Olve.Operations --version 0.32.2
                    
NuGet\Install-Package Olve.Operations -Version 0.32.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Olve.Operations" Version="0.32.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Olve.Operations" Version="0.32.2" />
                    
Directory.Packages.props
<PackageReference Include="Olve.Operations" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Olve.Operations --version 0.32.2
                    
#r "nuget: Olve.Operations, 0.32.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Olve.Operations@0.32.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Olve.Operations&version=0.32.2
                    
Install as a Cake Addin
#tool nuget:?package=Olve.Operations&version=0.32.2
                    
Install as a Cake Tool

Olve.Operations

NuGet

Abstractions for implementing operations that return Result objects. Provides factories for creating operations through dependency injection.

Installation

dotnet add package Olve.Operations

Usage

public class BuyItemOperation : IAsyncOperation<BuyItemOperation.Request>
{
    public record Request(string SkuId, int Quantity, float Price);

    public async ValueTask<Result> ExecuteAsync(Request request, CancellationToken ct = default)
    {
        // perform work
        return Result.Success();
    }
}

var op = new BuyItemOperation();
var result = await op.ExecuteAsync(new BuyItemOperation.Request("ABC123", 2, 9.99f));
if (result.Succeeded)
{
    // handle success
}

IOperation<TRequest> is available for synchronous implementations.

See the API documentation for more details.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Olve.Operations:

Package Downloads
Olve.OpenRaster

lightweight native support for OpenRaster files

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.32.2 64 8/9/2025
0.32.1 75 8/9/2025
0.32.0 129 8/8/2025
0.31.0 169 8/5/2025
0.30.0 39 8/3/2025
0.29.1 42 8/3/2025
0.29.0 37 8/3/2025
0.28.2 15 8/2/2025
0.26.2 434 7/21/2025
0.23.0 61 7/5/2025
0.22.2 95 6/7/2025
0.22.1 71 6/7/2025
0.22.0 74 6/7/2025
0.21.0 81 6/7/2025
0.20.2 245 5/13/2025
0.20.1 167 4/22/2025
0.20.0 164 4/22/2025
0.19.3 125 4/12/2025
0.19.0 90 4/12/2025
0.18.0 138 4/11/2025
0.17.2 164 4/8/2025
0.15.0 140 3/27/2025
0.14.0 240 3/19/2025
0.13.0 148 3/18/2025
0.12.1 141 3/18/2025
0.12.0 142 3/18/2025
0.11.0 402 3/18/2025