HUMANiT.Azure 2.0.3

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

HUMANiT Azure

Features

  • API Proxy: GET, PUT, POST, PATCH, and DELETE commands to proxy a call directly to a RESTful API. Built-in secondary proxy. Raw calls. Azure Functions obfuscation keys.
  • Simple API Proxy: Provides access to a RESTful API via type-safe resource types and pre-defines expected responses. Allways returns a result; never throws an exception. Built-in secondary proxy. Raw calls. Azure Functions obfuscation keys.
  • Domain API Proxy: Provides access to a RESTful API via immutable type-safe domain objects and pre-defines expected responses. Allways returns a result; never throws an exception. Built-in secondary proxy. Raw calls. Azure Functions obfuscation keys.
  • HTTP Methods: Constants for all used HTTP methods as per standard HTTP protocols 1.1, 2, and 3.
  • Media Types: Constants for most commonly used media types.
  • HTTP StatusCode Extensions: Extension methods for easier use of System.Net.HttpStatusCode.
  • Logging: Simplified logging that is always available and can be enabled/disabled during runtime.

Version 2.0 (Upgrade from 1.2)

  • Breaking: Explicit .NET 6 target framework removed. Use .NET 8 instead.
  • New: SimpleApiProxy offers 3 types of patch type configuration.
  • Improved: Inline documentation.
  • Obsolete: HUMANiT.Azure.AzureBase deprecated. Use HUMANiT.Logging.Logable instead (see HUMANiT Core package).

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

API Proxy

GET, PUT, POST, PATCH, and DELETE commands to proxy a call directly to a RESTful API. Built-in secondary proxy. Raw calls. Obfuscation keys.

Quickstart guidance will come.

Simple API Proxy

Provides access to a RESTful API via type-safe resource types and pre-defines expected responses. Allways returns a result; never throws an exception. Built-in secondary proxy. Raw calls. Azure Functions obfuscation keys.

Quickstart guidance will come.

Domain API Proxy

Provides access to a RESTful API via immutable type-safe domain objects and pre-defines expected responses. Allways returns a result; never throws an exception. Built-in secondary proxy. Raw calls. Azure Functions obfuscation keys.

Quickstart guidance will come.

HTTP Methods

Constants for all used HTTP methods as per standard HTTP protocols 1.1, 2, and 3.

Quickstart guidance will come.

Media Types

Constants for most commonly used media types.

Quickstart guidance will come.

HTTP StatusCode Extensions

Extension methods for easier use of System.Net.HttpStatusCode.

Located in namespace HUMANiT.Azure.Extensions.

The method System.Net.HttpStatusCode.RenderAsText() renders an HTTP status code as human-readable text, practical for logging, tracing, auditing, and other forms of displaying an error to a human. The status code 204, for instance, is rendered as "201 Created", and the status code 503 is rendered as "503 ServiceUnavailable".

The optional method parameter splitName defines readability. Default is false. If set to true, it splits the descriptive names. For instance, the status code 204 is rendered as "201 Created", and the status code 503 is rendered as "503 Service Unavailable". Example:

System.WriteLine(System.Net.HttpStatusCode.NotAcceptable.RenderAsText(true));
// output: 406 Not Acceptable

Logging (obsolete)

Simplified logging that is always available and can be enabled/disabled during runtime.

Located in namespace HUMANiT.Azure.

HUMANiT.Azure.AzureBase declared obsolete. Use HUMANiT.Logging.Logable instead; see HUMANiT Core package.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  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 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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on HUMANiT.Azure:

Package Downloads
HUMANiT.Azure.Functions

API proxy. Heartbeat. Simplified payload handling. Simplified content result creation incl. JSON. Simplified IActionResult handling for common HTTP status codes. Media types. Extensions.

HUMANiT.Azure.Data

Key features for anything in Azure to deal with data access such as databases, external services, queues, etc. Extended features for Azure Cosmos DB.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.3 72 4/23/2025
2.0.2 222 4/11/2025
2.0.0 184 4/4/2025
1.2.0 267 2/22/2025
1.1.0 1,713 11/4/2023
1.0.4 1,608 3/27/2023
1.0.3 997 1/17/2023
1.0.2 294 1/17/2023
1.0.1 917 1/10/2023
1.0.0 1,617 8/22/2022
0.7.0 3,528 4/2/2020

Contact HUMANiT for details: support@HUMANiT.nz