HUMANiT.Azure 1.0.0

.NET 6.0
NuGet\Install-Package HUMANiT.Azure -Version 1.0.0
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.
dotnet add package HUMANiT.Azure --version 1.0.0
<PackageReference Include="HUMANiT.Azure" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HUMANiT.Azure --version 1.0.0
#r "nuget: HUMANiT.Azure, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install HUMANiT.Azure as a Cake Addin
#addin nuget:?package=HUMANiT.Azure&version=1.0.0

// Install HUMANiT.Azure as a Cake Tool
#tool nuget:?package=HUMANiT.Azure&version=1.0.0

HUMANiT Azure

This package provides logic that we miss in .NET for Azure, but that find valuable for our own daily software development. -- the people of HUMANiT

This package is covered by 50+ unit tests and offers an API that is documented extensively inline.

Features

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

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.

Contact

  • Twitter -- stay in touch (@HUMANiTnz)
  • Facebook -- message with us (@HUMANiTnz)
  • support@humanit.nz -- contact us via email

License

MIT -- free software, hell yeah 🤩

Quickstart

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

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

Logging

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

To use logging features, you must call one of the provided constructors:

// call this constructor if you have a logger handy
public YourClass(ILogger logger) : base(logger) { .. }

// call this constructor if you have a logger factory handy
public YourClass(ILoggerFactory loggerFactory) : base(loggerFactory) { .. }

Logging is enabled by default. You can control the default by defining its state during contruction. All constructors have an optional parameter enableLogging:

public YourClass(ILogger logger, bool enableLogging) : base(logger, enableLogging) { .. }

You can check the logging status during runtime by calling IsLoggingEnabled and IsLoggingDisabled.

Logging can be enabled and disabled during runtime using the bethods EnableLogging and DisableLogging.

You can log a message or exception anywhere in your class using 6 log levels. For all log levels, there are multiple overloaded named methods available: LogDebug, LogTrace, LogInformation, LogWarning, LogError, and LogCritical.

You can log entering a method by calling LogMethodCall:

public void YourMethod() {
    LogMethod(nameof(YourClass), nameof(YourMethod));
    ..
}
Product Versions
.NET net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
Compatible target framework(s)
Additional computed target framework(s)
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

Feature logic for use in Azure Functions such as heartbeat. Simplified funtion startup. Simplified payload handling. Simplified content result creation incl. JSON convertion as well as highly specific simplifications for HTTP 200, 302 and 400. Converting call results into HTTP status results. List of media types of content results. [covered by 170+ tests]

HUMANiT.Azure.Data

Key features for anything in Azure to deal with data access such as databases, external services, queues, etc. Special features for Azure Cosmos DB. [covered by 80+ test]

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 78 8/22/2022
1.0.0-preview-2382 45 8/21/2022
1.0.0-preview-2368 41 8/19/2022
1.0.0-alpha-2368 37 8/19/2022
0.7.0 1,082 4/2/2020

Contact HUMANiT for details: support@HUMANiT.nz