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; } }
public override void WriteMetadata( TraceLoggingMetadataCollector collector, string name, EventFieldFormat format) { collector.AddArray(name, Statics.MakeDataType(TraceLoggingDataType.Guid, format)); }
public override void WriteMetadata( TraceLoggingMetadataCollector collector, string name, EventFieldFormat format) { collector.AddArray(name, Statics.Format64(format, TraceLoggingDataType.Double)); }
public override void WriteMetadata( TraceLoggingMetadataCollector collector, string name, EventFieldFormat format) { collector.AddArray(name, Statics.FormatPtr(format, Statics.UIntPtrType)); }
public override void WriteMetadata(TraceLoggingMetadataCollector collector, string name, EventFieldFormat format) { collector.AddArray(name, formatFunc(format, nativeFormat)); }