HUMANiT.Azure
1.1.0
See the version list below for details.
dotnet add package HUMANiT.Azure --version 1.1.0
NuGet\Install-Package HUMANiT.Azure -Version 1.1.0
<PackageReference Include="HUMANiT.Azure" Version="1.1.0" />
paket add HUMANiT.Azure --version 1.1.0
#r "nuget: HUMANiT.Azure, 1.1.0"
// Install HUMANiT.Azure as a Cake Addin #addin nuget:?package=HUMANiT.Azure&version=1.1.0 // Install HUMANiT.Azure as a Cake Tool #tool nuget:?package=HUMANiT.Azure&version=1.1.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 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 Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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 was computed. 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. |
-
net6.0
- HUMANiT.Core (>= 1.1.0)
- Microsoft.Azure.Functions.Extensions (>= 1.1.0)
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.
Contact HUMANiT for details: support@HUMANiT.nz