1 write to sb
mscorlib (1)
system\diagnostics\eventing\eventsource.cs (1)
6039
sb
= new StringBuilder();
59 references to sb
mscorlib (59)
system\diagnostics\eventing\eventsource.cs (59)
6047
sb
.AppendLine("<instrumentationManifest xmlns=\"http://schemas.microsoft.com/win/2004/08/events\">");
6048
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\">");
6049
sb
.AppendLine(" <events xmlns=\"http://schemas.microsoft.com/win/2004/08/events\">");
6050
sb
.Append("<provider name=\"").Append(providerName).
6053
sb
.Append("\" resourceFileName=\"").Append(dllName).Append("\" messageFileName=\"").Append(dllName);
6056
sb
.Append("\" symbol=\"").Append(symbolsName);
6057
sb
.Append("\">").AppendLine();
6332
sb
.Append(" <channels>").AppendLine();
6369
sb
.Append(" <").Append(elementName);
6370
sb
.Append(" chid=\"").Append(channelInfo.Name).Append("\"");
6371
sb
.Append(" name=\"").Append(fullName).Append("\"");
6374
WriteMessageAttrib(
sb
, "channel", channelInfo.Name, null);
6375
sb
.Append(" value=\"").Append(channel).Append("\"");
6377
sb
.Append(" type=\"").Append(channelType).Append("\"");
6378
sb
.Append(" enabled=\"").Append(enabled.ToString().ToLower()).Append("\"");
6386
sb
.Append("/>").AppendLine();
6388
sb
.Append(" </channels>").AppendLine();
6396
sb
.Append(" <tasks>").AppendLine();
6401
sb
.Append(" <task");
6402
WriteNameAndMessageAttribs(
sb
, "task", taskTab[task]);
6403
sb
.Append(" value=\"").Append(task).Append("\"/>").AppendLine();
6405
sb
.Append(" </tasks>").AppendLine();
6411
sb
.Append(" <maps>").AppendLine();
6416
sb
.Append(" <").Append(mapKind).Append(" name=\"").Append(enumType.Name).Append("\">").AppendLine();
6438
sb
.Append(" <map value=\"0x").Append(hexValue.ToString("x", CultureInfo.InvariantCulture)).Append("\"");
6439
WriteMessageAttrib(
sb
, "map", enumType.Name + "." + staticField.Name, staticField.Name);
6440
sb
.Append("/>").AppendLine();
6443
sb
.Append(" </").Append(mapKind).Append(">").AppendLine();
6445
sb
.Append(" </maps>").AppendLine();
6449
sb
.Append(" <opcodes>").AppendLine();
6454
sb
.Append(" <opcode");
6455
WriteNameAndMessageAttribs(
sb
, "opcode", opcodeTab[opcode]);
6456
sb
.Append(" value=\"").Append(opcode).Append("\"/>").AppendLine();
6458
sb
.Append(" </opcodes>").AppendLine();
6463
sb
.Append(" <keywords>").AppendLine();
6468
sb
.Append(" <keyword");
6469
WriteNameAndMessageAttribs(
sb
, "keyword", keywordTab[keyword]);
6470
sb
.Append(" mask=\"0x").Append(keyword.ToString("x", CultureInfo.InvariantCulture)).Append("\"/>").AppendLine();
6472
sb
.Append(" </keywords>").AppendLine();
6475
sb
.Append(" <events>").AppendLine();
6476
sb
.Append(events);
6477
sb
.Append(" </events>").AppendLine();
6479
sb
.Append(" <templates>").AppendLine();
6482
sb
.Append(templates);
6488
sb
.Append(" <template tid=\"_empty\"></template>").AppendLine();
6490
sb
.Append(" </templates>").AppendLine();
6492
sb
.Append("</provider>").AppendLine();
6493
sb
.Append("</events>").AppendLine();
6494
sb
.Append("</instrumentation>").AppendLine();
6497
sb
.Append("<localization>").AppendLine();
6524
sb
.Append(" <resources culture=\"").Append(ci.Name).Append("\">").AppendLine();
6525
sb
.Append(" <stringTable>").AppendLine();
6530
sb
.Append(" <string id=\"").Append(stringKey).Append("\" value=\"").Append(val).Append("\"/>").AppendLine();
6532
sb
.Append(" </stringTable>").AppendLine();
6533
sb
.Append(" </resources>").AppendLine();
6535
sb
.Append("</localization>").AppendLine();
6536
sb
.AppendLine("</instrumentationManifest>");
6537
return
sb
.ToString();
6544
WriteMessageAttrib(
sb
, elementName, name, name);