示例#1
0
        private static string ToJson(IEnumerable <LogEvent> events)
        {
            var data = new RawEvents
            {
                Events = events.Select(e => RawEvent.FromLogEvent(e)).ToArray()
            };

            throw new NotImplementedException();
            //string json = data.ToJsonString();
            //return json;
        }
示例#2
0
        private static string ToJson(IEnumerable <LogEvent> events)
        {
            var data = new RawEvents
            {
                Events = events.Select(e => RawEvent.FromLogEvent(e)).ToArray()
            };

            string json = data.ToJsonString();

            return(json);
        }