feat: Add MongoDB distributed locks Implementation
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.
Let me know when you're ready for me to take a look @joesdu !
Let me know when you're ready for me to take a look @joesdu !
Yes, it is ready now.