DistributedLock icon indicating copy to clipboard operation
DistributedLock copied to clipboard

feat: Add MongoDB distributed locks Implementation

Open joesdu opened this issue 2 months ago • 2 comments

Added the DistributedLock.MongoDB project, providing a MongoDB-based distributed lock implementation that supports both synchronous and asynchronous lock operations. Added core classes MongoDistributedLock, MongoDistributedLockHandle, MongoDistributedSynchronizationOptionsBuilder, and MongoDistributedSynchronizationProvider to implement lock acquisition, release, automatic renewal, and configuration functions.

Updated project configuration, added dependency on MongoDB.Driver, and supported multiple target frameworks (.NET 8, .NET Standard 2.1, .NET Framework 4.7.2). Added usage instructions and code examples in README.md.

Added comprehensive test coverage, including basic functionality, competition scenarios, lock loss handling, and support for custom collection names, ensuring the reliability of the functionality. Updated dependency versions and optimized internal access configuration for the test project.

joesdu avatar Oct 21 '25 09:10 joesdu

Let me know when you're ready for me to take a look @joesdu !

madelson avatar Oct 27 '25 23:10 madelson

Let me know when you're ready for me to take a look @joesdu !

Yes, it is ready now.

joesdu avatar Oct 28 '25 01:10 joesdu