示例#1
0
        public override void WriteMetadata(TraceLoggingMetadataCollector collector, string name, EventFieldFormat format)
        {
            switch (format)
            {
            case EventFieldFormat.String:
                collector.AddBinary(name, TraceLoggingDataType.CountedMbcsString);
                break;

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

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

            case EventFieldFormat.Xml:
                collector.AddBinary(name, TraceLoggingDataType.CountedMbcsXml);
                break;

            case EventFieldFormat.Json:
                collector.AddBinary(name, TraceLoggingDataType.CountedMbcsJson);
                break;

            default:
                collector.AddBinary(name, Statics.MakeDataType(TraceLoggingDataType.Binary, format));
                break;
            }
        }
示例#2
0
 public override void WriteMetadata(
     TraceLoggingMetadataCollector collector,
     string name,
     EventFieldFormat format)
 {
     collector.AddArray(name, Statics.MakeDataType(TraceLoggingDataType.Guid, format));
 }
示例#3
0
 public override void WriteMetadata(
     TraceLoggingMetadataCollector collector,
     string name,
     EventFieldFormat format)
 {
     collector.AddArray(name, Statics.Format64(format, TraceLoggingDataType.Double));
 }
示例#4
0
 public override void WriteMetadata(
     TraceLoggingMetadataCollector collector,
     string name,
     EventFieldFormat format)
 {
     collector.AddArray(name, Statics.FormatPtr(format, Statics.UIntPtrType));
 }
示例#5
0
 public override void WriteMetadata(TraceLoggingMetadataCollector collector, string name, EventFieldFormat format)
 {
     collector.AddArray(name, formatFunc(format, nativeFormat));
 }
示例#6
0
 public override void WriteMetadata(TraceLoggingMetadataCollector collector, string name, EventFieldFormat format)
 {
     collector.AddArray(name, formatFunc(format, nativeFormat));
 }