Skip to content

Instantly share code, notes, and snippets.

@undeadcat
Last active August 29, 2015 14:27
Show Gist options
  • Save undeadcat/9ff147362ee430aed3fb to your computer and use it in GitHub Desktop.
Save undeadcat/9ff147362ee430aed3fb to your computer and use it in GitHub Desktop.
public static void Main(){
using(AcquireDistributedLock()){
DoSomethingThatRequiresLock();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment