blah blah blah is here! blah blah » Close

1
votes
1 answers

How to perform a lock programatically?

I need to make a API call, but I want to wrap the call in a (C#) lock. What options do I have to wrap some logic in a lock to make it thread safe? Is it possible to mark a particular class or method as serializable also?

0
votes
1 answers

Pessimistic Concurrency

Hi I'm using .NET3.5 with C#. I want to implement code for locking/unlocking records of a database. Basically I want when a user edits a record to lock it first so that no other user can update/delete that record. I have done some resear ...

Feedback