WebApiSkeleton.DistributedLockUtilities
1.1.0
dotnet add package WebApiSkeleton.DistributedLockUtilities --version 1.1.0
NuGet\Install-Package WebApiSkeleton.DistributedLockUtilities -Version 1.1.0
<PackageReference Include="WebApiSkeleton.DistributedLockUtilities" Version="1.1.0" />
paket add WebApiSkeleton.DistributedLockUtilities --version 1.1.0
#r "nuget: WebApiSkeleton.DistributedLockUtilities, 1.1.0"
// Install WebApiSkeleton.DistributedLockUtilities as a Cake Addin #addin nuget:?package=WebApiSkeleton.DistributedLockUtilities&version=1.1.0 // Install WebApiSkeleton.DistributedLockUtilities as a Cake Tool #tool nuget:?package=WebApiSkeleton.DistributedLockUtilities&version=1.1.0
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 | Versions 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. |
-
net8.0
- DistributedLock.Redis (>= 1.0.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on WebApiSkeleton.DistributedLockUtilities:
Package | Downloads |
---|---|
WebApiSkeleton.Tasks
Package containing implementation of distributed task queue persisted in Redis database. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|