internal static string GetMSMQPath(this PipeName pipeName) { var machineNameEncoded = (String.IsNullOrEmpty(pipeName.MachineName)) ? "." : pipeName.MachineName.ToLowerInvariant(); return(machineNameEncoded + '\\' + pipeName.GetMSMQName()); }