OpenFaaS.Functions 1.5.2

dotnet add package OpenFaaS.Functions --version 1.5.2
                    
NuGet\Install-Package OpenFaaS.Functions -Version 1.5.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="OpenFaaS.Functions" Version="1.5.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OpenFaaS.Functions" Version="1.5.2" />
                    
Directory.Packages.props
<PackageReference Include="OpenFaaS.Functions" />
                    
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 OpenFaaS.Functions --version 1.5.2
                    
#r "nuget: OpenFaaS.Functions, 1.5.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 OpenFaaS.Functions@1.5.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=OpenFaaS.Functions&version=1.5.2
                    
Install as a Cake Addin
#tool nuget:?package=OpenFaaS.Functions&version=1.5.2
                    
Install as a Cake Tool

OpenFaaS ASPNET Functions

Function handler abstracts used by the template and function implementations.

Learn more about the template.

Learn more about OpenFaas.

IHttpFunction

This interface defines a contract for an ASPNET function. A function implementation needs to implement, as a base minimum, this interface.

public interface IHttpFunction
{
    Task<IActionResult> HandleAsync( HttpRequest request );
}

HttpFunction

An abstract implementation for the IHttpFunction interface. Although not required, the template by default generates a function that inherits from this class. It provides a few helper methods to make it easier to return specific IActionResult objects, simillar to ASPNET ControllerBase class.

public class Function : HttpFunction
{
   [HttpPost]
   public override async Task<IActionResult> HandleAsync( HttpRequest request )
   {
      var result = await DoSomethingAsync();
      
      return Ok( result );
   }
}
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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 was computed.  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.
  • net5.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on OpenFaaS.Functions:

Package Downloads
OpenFaaS.Functions.Newtonsoft

Newtonsoft Json formatters for OpenFaaS ASPNET Functions

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.5.2 913 10/28/2021
1.5.1-preview-2 253 10/1/2021
1.5.0 529 7/28/2021
1.4.0 509 5/19/2021
1.3.0 476 1/15/2021