Ejemplo n.º 1
0
        // Token: 0x06003572 RID: 13682 RVA: 0x000CEA8C File Offset: 0x000CCC8C
        public override void WriteMetadata(TraceLoggingMetadataCollector collector, string name, EventFieldFormat format)
        {
            switch (format)
            {
            case EventFieldFormat.String:
                collector.AddBinary(name, TraceLoggingDataType.CountedMbcsString);
                return;

            case EventFieldFormat.Boolean:
                collector.AddArray(name, TraceLoggingDataType.Boolean8);
                return;

            case EventFieldFormat.Hexadecimal:
                collector.AddArray(name, TraceLoggingDataType.HexInt8);
                return;

            default:
                if (format == EventFieldFormat.Xml)
                {
                    collector.AddBinary(name, TraceLoggingDataType.CountedMbcsXml);
                    return;
                }
                if (format != EventFieldFormat.Json)
                {
                    collector.AddBinary(name, Statics.MakeDataType(TraceLoggingDataType.Binary, format));
                    return;
                }
                collector.AddBinary(name, TraceLoggingDataType.CountedMbcsJson);
                return;
            }
        }
Ejemplo n.º 2
0
 // Token: 0x060035B9 RID: 13753 RVA: 0x000CEE30 File Offset: 0x000CD030
 public override void WriteMetadata(TraceLoggingMetadataCollector collector, string name, EventFieldFormat format)
 {
     collector.AddBinary(name, Statics.MakeDataType(TraceLoggingDataType.CountedUtf16String, format));
 }