HUMANiT.Azure.Functions
10.0.1
Prefix Reserved
dotnet add package HUMANiT.Azure.Functions --version 10.0.1
NuGet\Install-Package HUMANiT.Azure.Functions -Version 10.0.1
<PackageReference Include="HUMANiT.Azure.Functions" Version="10.0.1" />
<PackageVersion Include="HUMANiT.Azure.Functions" Version="10.0.1" />
<PackageReference Include="HUMANiT.Azure.Functions" />
paket add HUMANiT.Azure.Functions --version 10.0.1
#r "nuget: HUMANiT.Azure.Functions, 10.0.1"
#:package HUMANiT.Azure.Functions@10.0.1
#addin nuget:?package=HUMANiT.Azure.Functions&version=10.0.1
#tool nuget:?package=HUMANiT.Azure.Functions&version=10.0.1
HUMANiT Azure Functions
Features
- Action Results: Construction of
IActionResultobjects 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.
Usage
Add this package to your project:
<PackageReference Include="HUMANiT.Azure.Functions" Version="x.y.z" />
Version 10.0 (Upgrade from 2.0)
- Breaking: Explicit .NET 8 target framework removed. Use .NET 10 instead.
- Breaking: Most obsolete code from version 2.x removed, including
FunctionsBaseandHeartbeatFunctionsBase. UseFunction<TLoggerType>andHeartbeatFunction<TLoggerType>instead. - New: Added
Http201CreatedJson()support for HTTP status codes 201 with payload (non-compliant with HTTP). - Obsolete:
HUMANiT.Azure.Functions.HeartbeatFunction.DoFullCheckQueryParamconstant deprecated. Instead, use routes to define which heartbeat function to invoke, such as '/heartbeats/basic' and '/heartbeats/extended'.
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
IActionResultobjects 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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- HUMANiT.Azure (>= 10.0.1)
- Microsoft.ApplicationInsights.WorkerService (>= 3.1.2)
- Microsoft.Azure.Functions.Worker (>= 2.52.0)
- Microsoft.Azure.Functions.Worker.ApplicationInsights (>= 2.51.0)
- Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore (>= 2.1.1)
- Microsoft.Azure.Functions.Worker.Sdk (>= 2.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Contact HUMANiT for details: support@HUMANiT.nz