DistributedLock 2.8.3
dotnet add package DistributedLock --version 2.8.3
NuGet\Install-Package DistributedLock -Version 2.8.3
<PackageReference Include="DistributedLock" Version="2.8.3" />
<PackageVersion Include="DistributedLock" Version="2.8.3" />
<PackageReference Include="DistributedLock" />
paket add DistributedLock --version 2.8.3
#r "nuget: DistributedLock, 2.8.3"
#:package DistributedLock@2.8.3
#addin nuget:?package=DistributedLock&version=2.8.3
#tool nuget:?package=DistributedLock&version=2.8.3
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 | Versions 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 | 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 is compatible. 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. |
-
.NETFramework 4.6.2
- Azure.Storage.Blobs (>= 12.19.1)
- DistributedLock.Azure (>= 1.0.2)
- DistributedLock.FileSystem (>= 1.0.3)
- DistributedLock.MySql (>= 1.0.2)
- DistributedLock.Postgres (>= 1.3.1)
- DistributedLock.Redis (>= 1.1.1)
- DistributedLock.SqlServer (>= 1.0.7)
- DistributedLock.WaitHandles (>= 1.0.1)
- DistributedLock.ZooKeeper (>= 1.0.0)
- Microsoft.Bcl.AsyncInterfaces (>= 8.0.0)
- Microsoft.Data.SqlClient (>= 6.1.4)
- MySqlConnector (>= 2.3.5)
- Npgsql (>= 8.0.6)
- StackExchange.Redis (>= 2.7.33)
- System.ValueTuple (>= 4.5.0)
- ZooKeeperNetEx (>= 3.4.12.4)
-
.NETFramework 4.7.2
- Azure.Storage.Blobs (>= 12.19.1)
- DistributedLock.Azure (>= 1.0.2)
- DistributedLock.FileSystem (>= 1.0.3)
- DistributedLock.MongoDB (>= 1.0.2)
- DistributedLock.MySql (>= 1.0.2)
- DistributedLock.Oracle (>= 1.0.5)
- DistributedLock.Postgres (>= 1.3.1)
- DistributedLock.Redis (>= 1.1.1)
- DistributedLock.SqlServer (>= 1.0.7)
- DistributedLock.WaitHandles (>= 1.0.1)
- DistributedLock.ZooKeeper (>= 1.0.0)
- Microsoft.Data.SqlClient (>= 6.1.4)
- MongoDB.Driver (>= 3.9.0)
- MySqlConnector (>= 2.3.5)
- Npgsql (>= 8.0.6)
- Oracle.ManagedDataAccess (>= 23.6.1)
- StackExchange.Redis (>= 2.7.33)
- System.Diagnostics.DiagnosticSource (>= 10.0.5)
- ZooKeeperNetEx (>= 3.4.12.4)
-
.NETStandard 2.0
- Azure.Storage.Blobs (>= 12.19.1)
- DistributedLock.Azure (>= 1.0.2)
- DistributedLock.FileSystem (>= 1.0.3)
- DistributedLock.MySql (>= 1.0.2)
- DistributedLock.Postgres (>= 1.3.1)
- DistributedLock.Redis (>= 1.1.1)
- DistributedLock.SqlServer (>= 1.0.7)
- DistributedLock.WaitHandles (>= 1.0.1)
- DistributedLock.ZooKeeper (>= 1.0.0)
- Microsoft.Bcl.AsyncInterfaces (>= 8.0.0)
- Microsoft.Data.SqlClient (>= 6.1.4)
- MySqlConnector (>= 2.3.5)
- Npgsql (>= 8.0.6)
- StackExchange.Redis (>= 2.7.33)
- System.Threading.AccessControl (>= 8.0.0)
- ZooKeeperNetEx (>= 3.4.12.4)
-
.NETStandard 2.1
- Azure.Storage.Blobs (>= 12.19.1)
- DistributedLock.Azure (>= 1.0.2)
- DistributedLock.FileSystem (>= 1.0.3)
- DistributedLock.MongoDB (>= 1.0.2)
- DistributedLock.MySql (>= 1.0.2)
- DistributedLock.Oracle (>= 1.0.5)
- DistributedLock.Postgres (>= 1.3.1)
- DistributedLock.Redis (>= 1.1.1)
- DistributedLock.SqlServer (>= 1.0.7)
- DistributedLock.WaitHandles (>= 1.0.1)
- DistributedLock.ZooKeeper (>= 1.0.0)
- Microsoft.Data.SqlClient (>= 6.1.4)
- MongoDB.Driver (>= 3.9.0)
- MySqlConnector (>= 2.3.5)
- Npgsql (>= 8.0.6)
- Oracle.ManagedDataAccess.Core (>= 23.6.1)
- StackExchange.Redis (>= 2.7.33)
- System.Diagnostics.DiagnosticSource (>= 10.0.5)
- System.Threading.AccessControl (>= 8.0.0)
- ZooKeeperNetEx (>= 3.4.12.4)
NuGet packages (17)
Showing the top 5 NuGet packages that depend on DistributedLock:
| Package | Downloads |
|---|---|
|
Silky.Rpc
Core RPC infrastructure for Silky: service entry discovery, routing, load balancing, governance policies (timeout/retry/circuit-breaker), and transport abstraction. |
|
|
Silky.DistributedLock.Redis
Redis-backed distributed lock provider for Silky, using Medallion.Threading.Redis. |
|
|
Net.RunMethodsSequentially
Runs updates to single resources, e.g. a database, on startup of an application that has multiple instances |
|
|
Silky.Transaction
Core distributed transaction coordinator for Silky: participant management, recovery scheduling, and distributed lock integration. |
|
|
Else.TheSaga.Locking.DistributedLock
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 |
GitHub repositories (3)
Showing the top 3 popular GitHub repositories that depend on DistributedLock:
| Repository | Stars |
|---|---|
|
JonPSmith/AuthPermissions.AspNetCore
This library provides extra authorization and multi-tenant features to an ASP.NET Core application.
|
|
|
liuhll/silky
The Silky framework is designed to help developers quickly build a microservice development framework through simple code and configuration under the .net platform.
|
|
|
sitkoru/Sitko.Core
Sitko.Core is a set of libraries to help build .NET Core applications fast
|
| Version | Downloads | Last Updated |
|---|---|---|
| 2.8.3 | 89,223 | 2026/7/15 |
| 2.8.2 | 71,137 | 2026/6/10 |
| 2.8.1 | 205,040 | 2026/2/14 |
| 2.8.0 | 69,340 | 2026/1/18 |
| 2.7.1 | 358,807 | 2025/10/26 |
| 2.7.0 | 241,343 | 2025/8/10 |
| 2.6.0 | 543,472 | 2025/1/28 |
| 2.5.1 | 123,872 | 2024/12/7 |
| 2.5.0 | 373,099 | 2024/6/30 |
| 2.4.0 | 188,924 | 2024/3/26 |
| 2.3.4 | 540,969 | 2023/11/28 |
| 2.3.3 | 266,568 | 2023/7/17 |
| 2.3.2 | 443,452 | 2022/11/13 |
| 2.3.1 | 372,093 | 2022/7/9 |
| 2.3.0 | 282,882 | 2021/12/17 |
| 2.2.0 | 107,979 | 2021/10/2 |
| 2.1.0 | 191,819 | 2021/6/18 |
| 2.0.2 | 84,668 | 2021/4/24 |
| 2.0.1 | 60,014 | 2021/2/25 |
| 2.0.0 | 56,787 | 2021/1/14 |