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.
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.
// Install OpenFaaS.Functions as a Cake Addin
#addin nuget:?package=OpenFaaS.Functions&version=1.5.2

// Install OpenFaaS.Functions as a Cake Tool
#tool nuget:?package=OpenFaaS.Functions&version=1.5.2

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. 
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 816 10/28/2021
1.5.1-preview-2 176 10/1/2021
1.5.0 427 7/28/2021
1.4.0 421 5/19/2021
1.3.0 376 1/15/2021