Sweaj.Patterns
1.0.7-beta
See the version list below for details.
dotnet add package Sweaj.Patterns --version 1.0.7-beta
NuGet\Install-Package Sweaj.Patterns -Version 1.0.7-beta
<PackageReference Include="Sweaj.Patterns" Version="1.0.7-beta" />
paket add Sweaj.Patterns --version 1.0.7-beta
#r "nuget: Sweaj.Patterns, 1.0.7-beta"
// Install Sweaj.Patterns as a Cake Addin #addin nuget:?package=Sweaj.Patterns&version=1.0.7-beta&prerelease // Install Sweaj.Patterns as a Cake Tool #tool nuget:?package=Sweaj.Patterns&version=1.0.7-beta&prerelease
Sweaj.Patterns
A library intended for easily adapting a familiar & flexible abstraction of many patterns I use today.
Conversions
The IConverter
interface represents a contract for converting an object from one type to another synchronously, while the IAsyncConverter
interface represents a contract for converting an object from one type to another asynchronously, optionally supporting cancellation.
int convertedValue = converter.Convert(str);
int convertedValue = await converter.ConvertAsync(str);
Cache
Repository
Creating a generic repository that is fully flexible, all the way from its type, to its Key Type
public interface IRepository<TKey, TEntity> { }
Request / Response
The ApiResponse
encapsulates the minimum ApiResponse, that
public class ApiResponse { ... }
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. 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. |
-
net7.0
- Ardalis.GuardClauses (>= 4.0.1)
- JetBrains.Annotations (>= 2022.3.1)
- Microsoft.CodeAnalysis.CSharp (>= 4.4.0)
- Microsoft.Extensions.Caching.Abstractions (>= 7.0.0)
- NodaTime (>= 3.1.6)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Sweaj.Patterns:
Package | Downloads |
---|---|
TaskRipper.Core
A simple, easy-to-use lightweight, no-dependency library for executing an `Actionable<TRequest, TResult>` delegate N times. The library provides a way to balance the number of iterations requested by delegating a specific amount of iterations per thread on your machine supporting cancellation tokens per iteration. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
1.2.5 | 65 | 10/21/2024 | |
1.2.4 | 116 | 10/3/2024 | |
1.2.3 | 83 | 10/3/2024 | |
1.2.2 | 77 | 10/3/2024 | |
1.2.1 | 80 | 10/3/2024 | |
1.2.0 | 129 | 8/13/2024 | |
1.1.8 | 196 | 11/30/2023 | |
1.1.8-beta | 113 | 11/30/2023 | |
1.1.7-beta | 113 | 11/30/2023 | |
1.1.6-beta | 115 | 11/30/2023 | |
1.1.5-beta | 124 | 11/29/2023 | |
1.1.4-beta | 98 | 11/29/2023 | |
1.1.3-beta | 126 | 11/29/2023 | |
1.1.2-beta | 112 | 11/28/2023 | |
1.1.1-beta | 115 | 11/28/2023 | |
1.1.0-beta | 112 | 11/27/2023 | |
1.0.8-beta | 149 | 10/21/2023 | |
1.0.7-beta | 123 | 9/29/2023 | |
1.0.6-beta | 176 | 7/26/2023 | |
1.0.5 | 215 | 7/18/2023 | |
1.0.4 | 230 | 6/13/2023 | |
1.0.3 | 318 | 2/24/2023 | |
1.0.2 | 293 | 2/24/2023 | |
1.0.0 | 472 | 1/27/2023 | |
1.0.0-1.0.90 | 123 | 2/16/2023 | |
1.0.0-1.0.89 | 126 | 2/16/2023 | |
1.0.0-1.0.0 | 126 | 2/24/2023 |