Skip to content

Instantly share code, notes, and snippets.

@jellebens
Last active December 27, 2015 18:19
Show Gist options
  • Save jellebens/7368714 to your computer and use it in GitHub Desktop.
Save jellebens/7368714 to your computer and use it in GitHub Desktop.
Start Azure Development Blob Storage emulator from code
private static void StartAzureDevelopmentStorage() {
const string processName = "DSServiceLDB.exe";
bool isStorageRunning = Process.GetProcessesByName(processName).Any();
string dir = typeof(BlobRepositoryTests).Assembly.CodeBase;
if (isStorageRunning)
{
ProcessStartInfo start = new ProcessStartInfo
{
Arguments = "/devstore:start",
FileName = @"..\..\..\..\..\lib\Emulator\csrun.exe"
};
Process proc = new Process
{
StartInfo = start
};
proc.Start();
proc.WaitForExit();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment