HUMANiT.Azure 1.0.3

.NET 6.0
dotnet add package HUMANiT.Azure --version 1.0.3
NuGet\Install-Package HUMANiT.Azure -Version 1.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="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HUMANiT.Azure --version 1.0.3
#r "nuget: HUMANiT.Azure, 1.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.
// Install HUMANiT.Azure as a Cake Addin
#addin nuget:?package=HUMANiT.Azure&version=1.0.3

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

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 80+ automated 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 can use this package's 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) { .. }

Logging can be enabled and disabled during runtime using the methods EnableLogging() and DisableLogging().

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

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() {
    LogMethodCall(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 net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.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 such as heartbeat. Function startup simplified. Payload handling simplified. Content result creation incl. JSON simplified. IActionResult handling simplified for most HTTP status codes. Media types. [covered by 400+ 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 100+ test]

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.3 219 1/17/2023
1.0.2 133 1/17/2023
1.0.1 330 1/10/2023
1.0.1-alpha-2564 99 1/6/2023
1.0.1-alpha-2536 51 1/4/2023
1.0.1-alpha-2438 165 10/19/2022
1.0.0 436 8/22/2022
1.0.0-preview-2382 72 8/21/2022
1.0.0-preview-2368 66 8/19/2022
1.0.0-alpha-2368 60 8/19/2022
0.7.0 1,390 4/2/2020

Contact HUMANiT for details: support@HUMANiT.nz