This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Net; | |
using System.Net.Http; | |
using System.Runtime.CompilerServices; | |
using System.Web; | |
using System.Web.Http.Controllers; | |
using System.Web.Http.Filters; | |
namespace Throttling | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private async Task OnMessageReceivedAsync(BrokeredMessage receivedMessage) | |
{ | |
try{ | |
var messageLock = new MessageLock(receivedMessage)){ | |
// Process receivedMessage | |
await messageLock.CompleteAsync(); | |
} | |
finally { | |
messageLock.Dispose(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Idea from http://stackoverflow.com/questions/2144406/git-shallow-submodules | |
git submodule init | |
for i in $(git submodule | sed -e 's/.* //'); do | |
spath=$(git config -f .gitmodules --get submodule.$i.path) | |
surl=$(git config -f .gitmodules --get submodule.$i.url) | |
git clone --depth 1 $surl $spath | |
done | |
git submodule update |