Пример #1
0
            public void Read(XmlData rdr)
            {
                name         = rdr.ReadName("name", UNKOWN_NAME);
                excluded     = rdr.ReadBool("excluded", false);
                instrumented = rdr.ReadBool("instrumented", false);

                int    pos;
                string cls = rdr.ReadName("class", UNKOWN_NAME);

                pos = cls.IndexOf("+<");
                if (pos > 0)
                {
                    pos = cls.LastIndexOf('.', pos);
                }
                else
                {
                    pos = cls.LastIndexOf('.');
                }

                if (pos > 0)
                {
                    Namespace = rdr.Name(cls.Substring(0, pos));
                    cls       = cls.Substring(pos + 1);
                }
                else
                {
                    Namespace = "-";
                }

                Class = rdr.Name(cls);
            }
Пример #2
0
            public string assemblyIdentity; //="SVault.Core, Version=1.5.0.0, Culture=neutral, PublicKeyToken=null, processorArchitecture=x86">

            public void Read(XmlData rdr)
            {
                int pos;

                if (null != (name = filename = rdr.ReadName("name")))
                {
                    try { name = rdr.Name(System.IO.Path.GetFileName(name)); } catch { }
                }

                assemblyIdentity = rdr.ReadName("assemblyIdentity");
                if (null == (assembly = rdr.ReadName("assembly")))
                {
                    if (null != (assembly = assemblyIdentity) && (pos = assembly.IndexOf(',')) > 0)
                    {
                        assembly = rdr.Name(assembly.Substring(0, pos));
                    }
                }
                if (null == assembly)
                {
                    assembly = UNKOWN_NAME;
                }

                if (assembly.StartsWith("App_Web_", StringComparison.Ordinal))
                {
                    assembly = WEB_APP_NAME;
                }
            }
Пример #3
0
            public string document;     //="c:\Projects\svault\src\core\SVault.Core\Services\ServiceAttributes.cs" />

            public void Read(XmlData rdr)
            {
                visitcount = rdr.ReadLong("visitcount", 0);
                line       = rdr.ReadInt("line", 0);
                column     = rdr.ReadInt("column", 0);
                endline    = rdr.ReadInt("endline", line);
                endcolumn  = rdr.ReadInt("endcolumn", column);
                excluded   = rdr.ReadBool("excluded", false);
                document   = rdr.ReadName("document");
            }
Пример #4
0
			public string document;//="c:\Projects\svault\src\core\SVault.Core\Services\ServiceAttributes.cs" />

			public void Read(XmlData rdr)
			{
				visitcount = rdr.ReadLong("visitcount", 0);
				line = rdr.ReadInt("line", 0);
				column = rdr.ReadInt("column", 0);
				endline = rdr.ReadInt("endline", line);
				endcolumn = rdr.ReadInt("endcolumn", column);
				excluded = rdr.ReadBool("excluded", false);
				document = rdr.ReadName("document");
			}
Пример #5
0
			public void Read(XmlData rdr)
			{
				name = rdr.ReadName("name", UNKOWN_NAME);
				excluded = rdr.ReadBool("excluded", false);
				instrumented = rdr.ReadBool("instrumented", false);

				int pos;
				string cls = rdr.ReadName("class", UNKOWN_NAME);
				
				pos = cls.IndexOf("+<");
				if (pos > 0)
					pos = cls.LastIndexOf('.', pos);
				else
					pos = cls.LastIndexOf('.');

				if (pos > 0)
				{
					Namespace = rdr.Name(cls.Substring(0, pos));
					cls = cls.Substring(pos + 1);
				}
				else Namespace = "-";

				Class = rdr.Name(cls);
			}
Пример #6
0
			public string assemblyIdentity;//="SVault.Core, Version=1.5.0.0, Culture=neutral, PublicKeyToken=null, processorArchitecture=x86">

			public void Read(XmlData rdr)
			{
				int pos;
				if (null != (name = filename = rdr.ReadName("name")))
					try { name = rdr.Name(System.IO.Path.GetFileName(name)); } catch { }
				
				assemblyIdentity = rdr.ReadName("assemblyIdentity");
				if (null == (assembly = rdr.ReadName("assembly")))
				{
					if (null != (assembly = assemblyIdentity) && (pos = assembly.IndexOf(',')) > 0)
						assembly = rdr.Name(assembly.Substring(0, pos));
				}
				if (null == assembly)
					assembly = UNKOWN_NAME;

				if (assembly.StartsWith("App_Web_", StringComparison.Ordinal))
					assembly = WEB_APP_NAME;
			}