private static async Task MainAsync() { InitLoggers(); LogMessage(LogLevel.Info, "Started"); var generator = new DocGenerator(); var outputStream = Console.OpenStandardOutput(); try { await generator.GenerateApiDocumentationAsync(typeof(TestMarkerType), outputStream, new List <IExampleSerializer> { new JsonExampleSerializer(), new XmlExampleSerializer() }); } catch (Exception exception) { Logger.LogException("DOC TEST", LogLevel.Warning, exception); } LogMessage(LogLevel.Info, "Done"); Console.ReadLine(); }