Created
September 27, 2011 19:47
-
-
Save chgeuer/1246033 to your computer and use it in GitHub Desktop.
CrossProcessBarrier1 - the names
This file contains hidden or 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
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