Пример #1
0
 public ManifestBuilder(string providerName, Guid providerGuid, string dllName, ResourceManager resources, EventManifestOptions flags)
 {
     this.providerName = providerName;
     this.flags        = flags;
     this.resources    = resources;
     this.sb           = new StringBuilder();
     this.events       = new StringBuilder();
     this.templates    = new StringBuilder();
     this.opcodeTab    = new Dictionary <int, string>();
     this.stringTab    = new Dictionary <string, string>();
     this.errors       = (IList <string>) new List <string>();
     this.perEventByteArrayArgIndices = new Dictionary <string, List <int> >();
     this.sb.AppendLine("<instrumentationManifest xmlns=\"http://schemas.microsoft.com/win/2004/08/events\">");
     this.sb.AppendLine(" <instrumentation xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:win=\"http://manifests.microsoft.com/win/2004/08/windows/events\">");
     this.sb.AppendLine("  <events xmlns=\"http://schemas.microsoft.com/win/2004/08/events\">");
     this.sb.Append("<provider name=\"").Append(providerName).Append("\" guid=\"{").Append(providerGuid.ToString()).Append("}");
     if (dllName != null)
     {
         this.sb.Append("\" resourceFileName=\"").Append(dllName).Append("\" messageFileName=\"").Append(dllName);
     }
     this.sb.Append("\" symbol=\"").Append(providerName.Replace("-", "").Replace(".", "_"));
     this.sb.Append("\">").AppendLine();
 }
Пример #2
0
 public static string GenerateManifest(Type eventSourceType, string assemblyPathToIncludeInManifest, EventManifestOptions flags);
Пример #3
0
//		[MonoTODO]
        public static string GenerateManifest(Type eventSourceType, string assemblyPathToIncludeInManifest, EventManifestOptions flags)
        {
            throw new NotImplementedException();
        }