Skip to content

Instantly share code, notes, and snippets.

@chgeuer
Created September 27, 2011 19:47
Show Gist options
  • Save chgeuer/1246033 to your computer and use it in GitHub Desktop.
Save chgeuer/1246033 to your computer and use it in GitHub Desktop.
CrossProcessBarrier1 - the names
IEnumerable<string> allNames = new List<string>
{
"deployment(400).GenericWorkerRole.Cloud.WebRole.0_Web",
"deployment(400).GenericWorkerRole.Cloud.WebRole.1_Web",
"deployment(400).GenericWorkerRole.Cloud.WebRole.2_Web",
"deployment(400).GenericWorkerRole.Cloud.WebRole.3_Web",
"deployment(400).GenericWorkerRole.Cloud.WebRole.4_Web"
};
Func<string, string> escapeMutexName = instanceId => instanceId.Replace("(", ".").Replace(")", ".").Replace(".", "");
allNames = allNames.Select(escapeMutexName);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment