Exemplo n.º 1
0
        private static string BuildMarkup(string title, string stackTrace, string hashBlock)
        {
            string text = ExceptionCatcher.CreateEscapedSGML(stackTrace);

            return(string.Concat(new object[]
            {
                "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ReportedIssue xmlns=\"http://schemas.datacontract.org/2004/07/Inspector.Models\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\">\n\t<Summary>",
                title,
                "</Summary>\n\t<Assertion>",
                text,
                "</Assertion>\n\t<HashBlock>",
                hashBlock,
                "</HashBlock>\n\t<Version>",
                Application.version,
                "</Version>\n\t<Module>WoW Legion Companion</Module>\n\t<EnteredBy>0</EnteredBy>\n\t<IssueType>Exception</IssueType>\n\t<ProjectId>",
                292,
                "</ProjectId>\n\t<Metadata><NameValuePairs>\n\t\t<NameValuePair><Name>Build</Name><Value>",
                Application.version,
                "</Value></NameValuePair>\n\t\t<NameValuePair><Name>OS.Platform</Name><Value>",
                Application.platform,
                "</Value></NameValuePair>\n\t\t<NameValuePair><Name>Unity.Version</Name><Value>",
                Application.unityVersion,
                "</Value></NameValuePair>\n\t\t<NameValuePair><Name>Unity.Genuine</Name><Value>",
                Application.genuine,
                "</Value></NameValuePair>\n\t\t<NameValuePair><Name>Locale</Name><Value>",
                Main.instance.GetLocale(),
                "</Value></NameValuePair>\n\t</NameValuePairs></Metadata>\n</ReportedIssue>\n"
            }));
        }