Example #1
0
 public override void WriteMetadata(
     TraceLoggingMetadataCollector collector,
     string name,
     EventFieldFormat format)
 {
     collector.AddGroup(name);
 }
Example #2
0
        public override void WriteMetadata(TraceLoggingMetadataCollector collector, string name, EventFieldFormat format)
        {
            var group = collector.AddGroup(name);

            group.AddScalar("Ticks", Statics.MakeDataType(TraceLoggingDataType.FileTime, format));
            group.AddScalar("Offset", TraceLoggingDataType.Int64);
        }
Example #3
0
        public override void WriteMetadata(
            TraceLoggingMetadataCollector collector,
            string name,
            EventFieldFormat format)
        {
            var groupCollector = collector.AddGroup(name);
            if (this.properties != null)
            {
                foreach (var property in this.properties)
                {
                    var propertyFormat = EventFieldFormat.Default;
                    var propertyAttribute = property.fieldAttribute;
                    if (propertyAttribute != null)
                    {
                        groupCollector.Tags = propertyAttribute.Tags;
                        propertyFormat = propertyAttribute.Format;
                    }

                    property.typeInfo.WriteMetadata(
                        groupCollector,
                        property.name,
                        propertyFormat);
                }
            }
        }
Example #4
0
        public override void WriteMetadata(
            TraceLoggingMetadataCollector collector,
            string name,
            EventFieldFormat format)
        {
            var groupCollector = collector.AddGroup(name);

            if (this.properties != null)
            {
                foreach (var property in this.properties)
                {
                    var propertyFormat    = EventFieldFormat.Default;
                    var propertyAttribute = property.fieldAttribute;
                    if (propertyAttribute != null)
                    {
                        groupCollector.Tags = propertyAttribute.Tags;
                        propertyFormat      = propertyAttribute.Format;
                    }

                    property.typeInfo.WriteMetadata(
                        groupCollector,
                        property.name,
                        propertyFormat);
                }
            }
        }
Example #5
0
 public override void WriteMetadata(
     TraceLoggingMetadataCollector collector,
     string name,
     EventFieldFormat format)
 {
     collector.AddGroup(name);
 }
Example #6
0
        public override void WriteMetadata(
            TraceLoggingMetadataCollector collector,
            string name,
            EventFieldFormat format)
        {
            var group = collector.AddGroup(name);

            this.keyInfo.WriteMetadata(group, "Key", EventFieldFormat.Default);
            this.valueInfo.WriteMetadata(group, "Value", format);
        }
Example #7
0
        public override void WriteMetadata(
            TraceLoggingMetadataCollector collector,
            string name,
            EventFieldFormat format)
        {
            var group = collector.AddGroup(name);

            group.AddScalar("HasValue", TraceLoggingDataType.Boolean8);
            this.valueInfo.WriteMetadata(group, "Value", format);
        }
Example #8
0
        public override void WriteMetadata(TraceLoggingMetadataCollector collector, string name, EventFieldFormat format)
        {
            TraceLoggingMetadataCollector metadataCollector = collector.AddGroup(name);
            string name1 = "Ticks";
            int    num1  = (int)Statics.MakeDataType(TraceLoggingDataType.FileTime, format);

            metadataCollector.AddScalar(name1, (TraceLoggingDataType)num1);
            string name2 = "Offset";
            int    num2  = 9;

            metadataCollector.AddScalar(name2, (TraceLoggingDataType)num2);
        }
Example #9
0
 public override void WriteMetadata(
     TraceLoggingMetadataCollector collector,
     string name,
     EventFieldFormat format)
 {
     var group = collector.AddGroup(name);
     group.AddScalar("HasValue", TraceLoggingDataType.Boolean8);
     this.valueInfo.WriteMetadata(group, "Value", format);
 }
Example #10
0
 public override void WriteMetadata(TraceLoggingMetadataCollector collector, string name, EventFieldFormat format)
 {
     var group = collector.AddGroup(name);
     group.AddScalar("Ticks", Statics.MakeDataType(TraceLoggingDataType.FileTime, format));
     group.AddScalar("Offset", TraceLoggingDataType.Int64);
 }