/* This function renames the traces based on their type */ private static string GetTraceName2014(Csp.Trace trace) { String retString = null; if (trace.Name.Contains("!")) { retString = trace.Name.Replace("!", "tx"); } else if (trace.Name.Contains("?")) { retString = trace.Name.Replace("?", "rx");; } else { retString = trace.Name; } return(retString); }
private string GetPrivateTrace(Csp.Trace trace) { return(String.Format("{0}{1}", GetPublicTrace(trace), trace.ProcessId.ToLower())); }
/* This function returns the public trace */ private string GetPublicTrace(Csp.Trace trace) { return(trace.Name.TrimStart(new char[] { '!', '?' })); }