Пример #1
0
        public void WritePretty(object content)
        {
            ConsoleSpiner.StopLoading();
            var serializer = new SerializerBuilder().Build();
            var yaml       = serializer.Serialize(content);

            Console.WriteLine(yaml);
        }
Пример #2
0
 public void Write(object message)
 {
     ConsoleSpiner.StopLoading();
     Console.WriteLine(JsonConvert.SerializeObject(message,
                                                   new JsonSerializerSettings {
         Formatting = Formatting.Indented
     }));
 }