示例#1
0
 public static string SerializedEntryWithDictionaryInEnvelope()
 {
     return(EnvelopeHeader +
            "<logEntry xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n  " +
            "<Message>My message body</Message>\r\n  <Category>foo</Category>\r\n  <Priority>100</Priority>\r\n  <EventId>1</EventId>\r\n  <Severity>Unspecified</Severity>\r\n  <Title>=== Header ===</Title>\r\n  <TimeStamp>9999-12-31T23:59:59.9999999" + CommonUtil.GetTimeZone() + "</TimeStamp>\r\n  <MachineName>machine</MachineName>\r\n  " +
            CommonUtil.GetIntrinsicInfo() +
            "  <ExtendedProperties>\r\n    <Entries>\r\n      <Entry>\r\n        <key xsi:type=\"xsd:string\">key1</key>\r\n        <value xsi:type=\"xsd:string\">value1</value>\r\n      </Entry>\r\n      <Entry>\r\n        <key xsi:type=\"xsd:string\">key3</key>\r\n        <value xsi:type=\"xsd:string\">value3</value>\r\n      </Entry>\r\n      <Entry>\r\n        <key xsi:type=\"xsd:string\">key2</key>\r\n        <value xsi:type=\"xsd:string\">value2</value>\r\n      </Entry>\r\n    </Entries>\r\n  </ExtendedProperties>\r\n</logEntry>" +
            EnvelopeFooter);
 }