HUMANiT.Azure.Functions 2.0.2

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

HUMANiT Azure Functions

Features

  • Action Results: Construction of IActionResult objects for proper HTTP status code consideration.
  • Heartbeat: Fast heartbeat that an API can provide, including optional call dependancy on other APIs that offer a heartbeat.
  • HTTP Method Support: Constants to ease method name definitions.
  • Logging: Built-in logging for Azure Functions.
  • Payload: Built-in payload conversions for Azure Functions.
  • Call Result: Built-in call result handling for Azure Functions.

Version 2.0 (Upgrade from 1.2)

  • Breaking: Explicit .NET 6 target framework removed. Use .NET 8 instead.
  • Breaking: Only support for the isolated worker model. For in-process model support, use HUMANiT Azure Functions 1.2.1 instead.
  • Breaking: HUMANiT.Azure.Functions.Api.MediaType class removed. Use HUMANiT.Azure.MediaTypes instead (HUMANiT.Azure package).
  • Breaking: HUMANiT.Azure.Functions.ApiProxy class removed. Use HUMANiT.Azure.ApiProxy instead (HUMANiT.Azure package).
  • Breaking: HUMANiT.Azure.Functions.HttpStatusCodeExtensions class removed. Use HUMANiT.Azure.Extensions.HttpStatusCodeExtensions instead (see HUMANiT Azure package).
  • Breaking: HUMANiT.Azure.Functions.IApiProxy interface removed. Use HUMANiT.Azure.ApiProxy instead (HUMANiT.Azure package).
  • Breaking: HUMANiT.Azure.Functions.StartupBase class removed. Use Microsoft.Azure.Functions.Extensions.DependencyInjection.FunctionsStartup directly.
  • New: Added IActionResult support for HTTP status codes 103, 203, 205, 401, 418, 422, 423, 424, 425, 429, 431, and 451.
  • Improved: IActionResult HTTP method documentation enriched with functional explanations.
  • Improved: Inline documentation.
  • Obsolete: HUMANiT.Azure.Functions.Api.FunctionsBase class deprecated. Use HUMANiT.Azure.Functions.Function instead.
  • Obsolete: HUMANiT.Azure.Functions.Api.HeartbeatFunctionsBase class deprecated. Use HUMANiT.Azure.Functions.HeartbeatFunction instead.

Contact

This package contains features which we require for our own software; therefore, some features are highly custom. If you require a fix, an enhancement, or a more configurable solution, please contact us: support@humanit.nz.

License

MIT -- free software, hell yeah 🤩

Quickstart

Action Results

Construction of IActionResult objects for proper HTTP status code consideration.

Located in namespace HUMANiT.Azure.Functions.

Supported HTTP Status Codes: All 1xx. All 2xx except 207, 208, and 226. 301, 302, 304, 307, and 308. 400, 401, 403-405, 408-410, 418-425 and 429-451. 500-502 and 504.

Quickstart guidance will come.

Heartbeat

Fast heartbeat that an API can provide, including optional call dependancy on other APIs that offer a heartbeat.

Classes that inherit from HeartbeatFunction and call at least one of the provided constructors can use this packages features:

public class YourClass : HeartbeatFunction<YourClass> { .. }

Quickstart guidance will come.

HTTP Method Support

Constants to ease method name definitions.

Quickstart guidance will come.

Logging

Built-in logging for Azure Functions.

Quickstart guidance will come. See also HUMANiT Core: Logging.

Payload

Built-in payload conversions for Azure Functions.

Quickstart guidance will come.

Call Result

Built-in call result handling for Azure Functions.

Quickstart guidance will come.

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. 
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
2.0.2 61 3 days ago
2.0.0 92 10 days ago
1.2.1 230 a month ago
1.2.0 209 a month ago
1.1.0 1,732 11/4/2023
1.0.4 828 3/31/2023
1.0.3 791 1/17/2023
1.0.1 825 1/10/2023
1.0.0 872 10/19/2022
0.7.3 1,254 4/3/2020
0.7.0 1,041 4/2/2020
0.5.0 1,069 11/28/2019

Contact HUMANiT for details: support@HUMANiT.nz