WebApiSkeleton.DistributeLockUtilities 1.1.1

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

// Install WebApiSkeleton.DistributeLockUtilities as a Cake Tool
#tool nuget:?package=WebApiSkeleton.DistributeLockUtilities&version=1.1.1                

WebApiSkeleton.DistributeLockUtilities

WebApiSkeleton.DistributeLockUtilities contains dependencies to implement different types of distributed locks.

Usage

Settings

RedisSettings provides properties to set up Redis IConnectionMultiplexer and the database number that is used. If multiple redis instances are required it is better to use .NET 8 Keyed services feature.

SemaphoreSettings are used in IDistributedLockService to resolve semaphores.

Description

IDistributedLockService is an abstraction to the lock service. It provides base methods to acquire locks and semaphores. Default implementation is RedisDistributedLockService.

In default redis implementation DistributedLockException is thrown WithDistributedLockAsync method has throwOnFailure argument set to true or lock couldn't be taken for more than 1 minute.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on WebApiSkeleton.DistributeLockUtilities:

Package Downloads
WebApiSkeleton.Security.Core

Package containing base models and abstractions that are used to implement core security functionality.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.1 120 4/21/2024