Klab.Toolkit.Common 2.6.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Klab.Toolkit.Common --version 2.6.0
                    
NuGet\Install-Package Klab.Toolkit.Common -Version 2.6.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.
<PackageReference Include="Klab.Toolkit.Common" Version="2.6.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Klab.Toolkit.Common" Version="2.6.0" />
                    
Directory.Packages.props
<PackageReference Include="Klab.Toolkit.Common" />
                    
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 Klab.Toolkit.Common --version 2.6.0
                    
#r "nuget: Klab.Toolkit.Common, 2.6.0"
                    
#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.
#:package Klab.Toolkit.Common@2.6.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Klab.Toolkit.Common&version=2.6.0
                    
Install as a Cake Addin
#tool nuget:?package=Klab.Toolkit.Common&version=2.6.0
                    
Install as a Cake Tool

Klab.Toolkit.Common

Overview

The Klab.Toolkit.Common package is a core component of the Klab.Toolkit solution. It provides a set of common classes and interfaces that are used across various projects within the solution. This package aims to promote code reuse, consistency, and flexibility by defining shared abstractions and utilities.

Purpose

The primary purpose of the Klab.Toolkit.Common package is to define common classes and interfaces that can be utilized by other components of the Klab.Toolkit solution. By centralizing these definitions, the package helps to ensure that different parts of the solution can interact seamlessly and consistently.

Key Features

  • Common Interfaces: Defines interfaces that are used across the solution to promote consistency and flexibility. For example, the ITimeProvider interface abstracts the system time, making it easier to test time-dependent code.
  • Utility Classes: Provides utility classes that offer common functionality needed by multiple components of the solution.
  • Abstractions: Offers abstractions that help in decoupling components, making the system more modular and easier to maintain.

Example Usage

ITimeProvider Interface

The ITimeProvider interface is used to abstract the system time. This is particularly useful for testing purposes, as it allows you to control the flow of time in your tests.

IRetryService Interface

The IRetryService interface defines a common way to perform retry logic in the system. By using this interface, you can easily add retry functionality to any part of the solution without duplicating code.

Usage in Projects

To use the Klab.Toolkit.Common package in your projects call the Function on your Dependency Injection Container to register the services.


services.AddKlabToolkitCommon();

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 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.  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.  net10.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen 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 Klab.Toolkit.Common:

Package Downloads
Klab.Toolkit.DI

Package Description

Klab.Toolkit.Logging

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.10.0 74 8/22/2025
2.9.0 162 8/3/2025
2.8.2 360 5/15/2025
2.8.1 219 4/24/2025
2.8.0 198 4/22/2025
2.7.3 174 4/13/2025
2.7.2 188 4/6/2025
2.7.1 187 4/3/2025
2.7.0 198 4/3/2025
2.6.0 517 3/24/2025
2.5.1 160 3/14/2025
2.5.0 150 2/24/2025
2.4.1 174 10/2/2024
2.4.0 161 10/2/2024
2.3.0 159 10/1/2024
2.2.4 166 9/30/2024
2.2.3 144 9/28/2024
2.2.2 189 9/20/2024
2.2.1 175 9/17/2024
2.2.0 176 9/17/2024
2.1.0 199 8/12/2024
2.0.0 239 12/28/2023
1.0.0 210 5/28/2023
0.3.0 206 5/28/2023
0.2.0 213 5/28/2023
0.1.0 197 5/28/2023