Distributed locking in .NET
问题 I'm looking for recommendations for a locking mechanism that will work across multiple machines. In my case I basically just want to be able to start a service on 2 machines and have one block until the other finishes as a simple way to insure redundancy in case a service machine goes down. Sort of along the same lines as Distributed Lock Service but specifically looking for projects that people have successfully integrated with .NET. 回答1: We use SqlServer's application lock functionality for