Using a Lock in a Web API Action Method

Download full source code. This is one of those posts that there may not be any &ldquo;good&rdquo; practical application for, but it might be helpful in some edge cases. And I learned something interesting about web browser behavior, more on that later. The idea What if you wanted to acquire an exclusive lock on a resource while executing a Web API action method? Generally speaking, this is not a…