OperationResultTools 1.0.15

There is a newer version of this package available.
See the version list below for details.
dotnet add package OperationResultTools --version 1.0.15                
NuGet\Install-Package OperationResultTools -Version 1.0.15                
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="OperationResultTools" Version="1.0.15" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OperationResultTools --version 1.0.15                
#r "nuget: OperationResultTools, 1.0.15"                
#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.
// Install OperationResultTools as a Cake Addin
#addin nuget:?package=OperationResultTools&version=1.0.15

// Install OperationResultTools as a Cake Tool
#tool nuget:?package=OperationResultTools&version=1.0.15                

OperationResults

Lint Code Base CodeQL License: MIT

A set of lightweight libraries to totally decouple operation results and actual application responses.

Core library

NuGet Nuget

Installation

The library is available on NuGet. Just search for OperationResultTools in the Package Manager GUI or run the following command in the .NET CLI:

dotnet add package OperationResultTools

ASP.NET Core integration library (Controller-based project)

NuGet Nuget

Note: This is the library to use if you're working with Controller.

This library provides HttpContext extension methods to automatically map Operation Results (that may come, for example, from a business layer) to HTTP responses, along with the appropriate status codes.

A full example is available in the Samples folder. Search for the registration in the Program.cs file and the usage in Controllers folder.

Installation

The library is available on NuGet. Just search for OperationResultTools.AspNetCore in the Package Manager GUI or run the following command in the .NET CLI:

dotnet add package OperationResultTools.AspNetCore

ASP.NET Core integration library (Minimal API project)

NuGet Nuget

Note: This is the library to use if you're working with Minimal APIs.

This library provides HttpContext extension methods to automatically map Operation Results (that may come, for example, from a business layer) to HTTP responses, along with the appropriate status codes.

A full example is available in the Samples folder. Search for the registration and the usage in Program.cs file.

Installation

The library is available on NuGet. Just search for OperationResultTools.AspNetCore.Http in the Package Manager GUI or run the following command in the .NET CLI:

dotnet add package OperationResultTools.AspNetCore.Http

Contribute

The project is constantly evolving. Contributions are welcome. Feel free to file issues and pull requests on the repo and we'll address them as we can.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on OperationResultTools:

Package Downloads
OperationResultTools.AspNetCore

A lightweight library to totally decouple operation results and responses in ASP.NET Controller-based projects.

OperationResultTools.AspNetCore.Http

A lightweight library to totally decouple operation results and responses in Minimal API projects.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.29 189 10/21/2024
1.0.26 617 6/17/2024
1.0.25 1,319 2/23/2024
1.0.15 811 12/13/2023
1.0.12 4,675 12/2/2022
1.0.9 851 11/9/2022
1.0.8 660 10/4/2022
1.0.3 789 9/17/2022