DistributedLock 2.4.0

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

// Install DistributedLock as a Cake Tool
#tool nuget:?package=DistributedLock&version=2.4.0

DistributedLock is a .NET library that provides robust and easy-to-use distributed mutexes, reader-writer locks, and semaphores based on a variety of underlying technologies.

With DistributedLock, synchronizing access to a region of code across multiple applications/machines is as simple as:

await using (await myDistributedLock.AcquireAsync())
	// I hold the lock here

Read the documentation here.

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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  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 (12)

Showing the top 5 NuGet packages that depend on DistributedLock:

Package Downloads

Providing RPC communication service for Silky framework


A module that allows you use distributed locking (using sql server, thanks to DistributedLock library) --------------------- .net core Saga / ProcessManager implementation https://github.com/b-y-t-e/TheSaga


Encapsulating the basic package of Silky distributed transaction


Silky DistributedLock


Runs updates to single resources, e.g. a database, on startup of an application that has multiple instances

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on DistributedLock:

Repository Stars
This library provides extra authorization and multi-tenant features to an ASP.NET Core application.
The Silky framework is designed to help developers quickly build a microservice development framework through simple code and configuration under the .net platform.
Version Downloads Last updated
2.4.0 24,334 3/26/2024
2.3.4 125,343 11/28/2023
2.3.3 186,362 7/17/2023
2.3.2 330,147 11/13/2022
2.3.1 250,547 7/9/2022
2.3.0 236,745 12/17/2021
2.2.0 86,374 10/2/2021
2.1.0 152,404 6/18/2021
2.0.2 62,942 4/24/2021
2.0.1 53,481 2/25/2021
2.0.0 48,315 1/14/2021
2.0.0-alpha02 297 12/23/2020
2.0.0-alpha01 381 8/28/2020
1.5.0 3,633,423 1/29/2020
1.5.0-beta01 518 1/28/2020
1.4.0 640,223 2/8/2018
1.3.1 172,513 4/17/2017
1.3.0 2,393 3/12/2017
1.2.0 71,797 2/4/2017
1.1.0 32,159 7/15/2015
1.0.1 1,537 6/6/2015
1.0.0 12,438 6/6/2015