Backport.System.Threading.Lock
1.0.1
See the version list below for details.
dotnet add package Backport.System.Threading.Lock --version 1.0.1
NuGet\Install-Package Backport.System.Threading.Lock -Version 1.0.1
<PackageReference Include="Backport.System.Threading.Lock" Version="1.0.1" />
<PackageVersion Include="Backport.System.Threading.Lock" Version="1.0.1" />
<PackageReference Include="Backport.System.Threading.Lock" />
paket add Backport.System.Threading.Lock --version 1.0.1
#r "nuget: Backport.System.Threading.Lock, 1.0.1"
#addin nuget:?package=Backport.System.Threading.Lock&version=1.0.1
#tool nuget:?package=Backport.System.Threading.Lock&version=1.0.1
Backport.System.Threading.Lock
A micro-library that backports .NET 9.0+'s System.Threading.Lock
to prior versions (from .NET Standard 2.0 up to .NET 8.0), providing as much similar functionality as possible.
Usage
Use this library the same way you would use System.Threading.Lock.
In order to get the performance benefits of System.Threading.Lock
, you must however multi-target frameworks in your .csproj
file.
Example:
<TargetFrameworks>netstandard2.0;net9.0</TargetFrameworks>
Performance
This library was benchmarked against locking on an object on .NET 8.0 and no speed or memory allocation difference was noted.
Credits
Check out our list of contributors!
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 is compatible. 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. |
.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 was computed. |
.NET Framework | net461 was computed. net462 was computed. 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. |
-
.NETStandard 2.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (28)
Showing the top 5 NuGet packages that depend on Backport.System.Threading.Lock:
Package | Downloads |
---|---|
DisCatSharp
DisCatSharp Your library to write discord bots in C# with a focus on always providing access to the latest discord features. Written with love and for everyone. |
|
DisCatSharp.Common
DisCatSharp Common Extension Common tools for DisCatSharp, like regexes and converters! |
|
Csla
CSLA .NET provides a home for your business logic. It is an application development framework that reduces the cost of building and maintaining applications. The framework enables developers to build an object-oriented business layer for their application that encapsulates all business, authorization and validation logic for the application. |
|
DisCatSharp.VoiceNext
DisCatSharp Voice Next Extension Easy made audio player for discord bots. Documentation: https://docs.dcs.aitsys.dev/articles/modules/audio/voicenext/prerequisites.html |
|
DisCatSharp.Lavalink
DisCatSharp Lavalink V4 Extension Extend your bot with the full power of lavalink. Play your favorite music in discord! Requires Lavalink Server v4 Documentation: https://docs.dcs.aitsys.dev/articles/modules/audio/lavalink_v4/intro.html |
GitHub repositories (3)
Showing the top 3 popular GitHub repositories that depend on Backport.System.Threading.Lock:
Repository | Stars |
---|---|
MarimerLLC/csla
A home for your business logic in any .NET application.
|
|
netcorepal/netcorepal-cloud-framework
一个基于ASP.NET Core实现的整洁领域驱动设计落地战术框架。 A tactical framework for Clean Domain-Driven Design based on ASP.NET Core.
|
|
Aiko-IT-Systems/DisCatSharp
Your library to write discord apps in C# with focus on always providing access to the latest discord features
|
Version | Downloads | Last updated | |
---|---|---|---|
3.1.4 | 11,327 | 5 months ago | |
3.1.0 | 3,173 | 5 months ago | |
3.0.3 | 2,845 | 5 months ago | |
3.0.1 | 1,404 | 6 months ago | |
2.0.7 | 1,697 | 6 months ago | |
2.0.5 | 4,500 | 7 months ago | |
2.0.3 | 2,943 | 8 months ago | |
2.0.2 | 171 | 8 months ago | |
2.0.0 | 1,653 | 8 months ago | |
1.1.6 | 3,543 | 9 months ago | |
1.1.5 | 181 | 9 months ago | |
1.1.1 | 220 | 9 months ago | |
1.1.0 | 153 | 9 months ago | |
1.0.2 | 303 | 9 months ago | |
1.0.1 | 220 | 9 months ago |
Initial release.