Synchronization helper: a static lock collection associated with a key.
NamedLock manages the lifetime of critical sections that can be accessed by a key (name) throughout the application. It also have some helper methods to allow a maximum wait time (timeout) to aquire the lock and safelly release it.
Note: this nuget package contains c# source code and depends on System.Collections.Concurrent introduced in .Net 4.0.
See the version list below for details.
Install-Package SimpleHelpers.NamedLock -Version 1.0.3
dotnet add package SimpleHelpers.NamedLock --version 1.0.3
<PackageReference Include="SimpleHelpers.NamedLock" Version="1.0.3" />
paket add SimpleHelpers.NamedLock --version 1.0.3
* Better documentation
This package has no dependencies.
This package is not used by any popular GitHub repositories.