String[] hubCommandsSerialized = message.Split(’|’);
string[] hubCommandsSerializedDistinct =
hubCommandsSerialized.Distinct().ToArray();
foreach (var cmd in hubCommandsSerializedDistinct)
{
if (cmd != "")
{
Thread thread = new Thread(() => ProcessCommand(cmd.Trim(’|’)));
thread.IsBackground = true;
thread.Start();
}
}
|