AppCore.Net 0.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package AppCore.Net --version 0.1.0
                    
NuGet\Install-Package AppCore.Net -Version 0.1.0
                    
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="AppCore.Net" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AppCore.Net" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="AppCore.Net" />
                    
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 AppCore.Net --version 0.1.0
                    
#r "nuget: AppCore.Net, 0.1.0"
                    
#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 AppCore.Net@0.1.0
                    
#: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=AppCore.Net&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=AppCore.Net&version=0.1.0
                    
Install as a Cake Tool

⚙️ AppCore

Nostrud veniam deserunt aliqua exercitation eu labore consectetur est non id aute veniam quis laboris.

Build & Publish Orchestrator v3 DotNet MIT License

Introduction

AppCore is a library designed to streamline the creation and management of services and controllers in .NET applications. It provides a set of classes and methods that standardize common operations within APIs, with flexible configuration options for routing and service responses.

Getting Started

To get started with AppCore, follow these steps:

Add AppCore package to your project via NuGet:

dotnet add package AppCore

How it Works?

Here's how to create a controller :

public class CoffeeController(CoffeeService service) : ApiController
{
    [HttpPost]
    [ApiResponse(200, "Coffee prepared successfully.")]
    [ApiResponse(400, "An error occurred during the preparation process.")]
    public ActionResult PrepareCoffee() => service.PrepareCoffee();
}

And here's how to create an action in a service, each function returns a ServiceResult, and can be chained.

public class CoffeeService
{
    public ServiceResult DoSomething()
    {
        return ServiceResult.Error("Something happened!", HttpStatusCode.Conflict);
    }

    public ServiceResult PrepareCoffee()
    {
        var doSomethingResult = DoSomething();
        if (doSomethingResult == false) return doSomethingResult;
        
        return ServiceResult.Ok("The coffee is now DONE!");
    }
}

Contribute to AppCore

See CONTRIBUTING.md for best practices and instructions on setting up your development environment to work on AppCore.

Product Compatible and additional computed target framework versions.
.NET 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.  net9.0 was computed.  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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.3 232 12/6/2024
0.1.2 190 12/6/2024
0.1.1 181 12/6/2024
0.1.0 188 12/6/2024