/// <summary> /// Initializes a new instance of the <see cref="DocToMarkdown.ListMarkdownNodeParser"/> class. /// </summary> /// <param name="environment">The environment.</param> /// <param name="parserPool">The parser pool.</param> /// <param name = "listLevel">The level of a list. /// E.q. it is possible to have a list in the list. In this case the level is 1. /// If the list is at the master node, the level is 0. /// </param> /// <exception cref="ArgumentException">Thrown when the listLevel is less then zero.</exception> internal ListMarkdownNodeParser(IEnvironment environment, IParserPool parserPool, Int32 listLevel = 0) { if (listLevel < 0) { throw new ArgumentException("listlevel needs to be greater or equal 0", "listLevel"); } this._parserPool = parserPool; this._listLevel = listLevel; this._environment = environment; this.InitTemplate(this._environment, this._listLevel); }
private static void Init() { Console.WriteLine("Starting init application"); _loggerManager = new NLogManagerAdapter(); Console.WriteLine("Setting configuration"); var configuration = new ConfigurationAdapter(_loggerManager, AppDomain.CurrentDomain.BaseDirectory); SetLoggerManager(configuration); SetMarkdownType(configuration); Console.WriteLine("Setting up source paths"); _xmlSourcePath = configuration["xmlSource.folder.path"]; Console.WriteLine("Xml source path: {0}", _xmlSourcePath); _markdownTargetPath = configuration["markupTarget.folder.path"]; Console.WriteLine("Markdown target path: {0}", _markdownTargetPath); Console.WriteLine("Source paths setting finished"); _parser = new MarkdownNodeParserPool(Environment, _markdownType, _loggerManager); }
/// <summary> /// Initializes a new instance of the <see cref="MemberMarkdownNodeParser"/> class. /// </summary> /// <param name="parserPool">The parser pool.</param> /// <param name="environment">The environment.</param> internal MemberMarkdownNodeParser(IParserPool parserPool, IEnvironment environment) { this._parserPool = parserPool; this.InitTemplateDictionary(environment); }
/// <summary> /// Initializes a new instance of the <see cref="SummaryMarkdownNodeParser"/> class. /// </summary> /// <param name="parserPool">The parser pool.</param> /// <param name="environment">The environment.</param> internal SummaryMarkdownNodeParser(IParserPool parserPool, IEnvironment environment) { this._parserPool = parserPool; this.InitTemplate(environment); }
/// <summary> /// Initializes a new instance of the <see cref="RemarksMarkdownNodeParser"/> class. /// </summary> /// <param name="parserPool">The parser pool.</param> /// <param name="environment">The environment.</param> public RemarksMarkdownNodeParser(IParserPool parserPool, IEnvironment environment) { this.InitTemplate(environment); this._parserPool = parserPool; }
/// <summary> /// Initializes a new instance of the <see cref="DocToMarkdown.ParaMarkdownNodeParser"/> class. /// </summary> /// <param name="parserPool">The parser pool.</param> internal ParaMarkdownNodeParser(IParserPool parserPool) { this._parserPool = parserPool; }
/// <summary> /// Initializes a new instance of the <see cref="DocMarkdownNodeParser"/> class. /// </summary> /// <param name="parserPool">The parser pool.</param> /// <param name="environment">The environment.</param> /// <param name = "logger">The logger.</param> public DocMarkdownNodeParser(IParserPool parserPool, IEnvironment environment, ILogger logger) { this._logger = logger; this._parserPool = parserPool; this.InitTemplate(environment); }
/// <summary> /// Initializes a new instance of the <see cref="ExceptionMarkdownNodeParser"/> class. /// </summary> /// <param name="parserPool">The parser pool.</param> /// <param name="environment">The environment.</param> /// <param name="markdownType">The markdown type.</param> public ExceptionMarkdownNodeParser(IParserPool parserPool, IEnvironment environment, MarkdownType markdownType) { this._parserPool = parserPool; this.InitTemplate(environment, markdownType); }
/// <summary> /// Initializes a new instance of the <see cref="TypeparamMarkdownNodeParser"/> class. /// </summary> /// <param name = "parserPool">The parser pool.</param> /// <param name="environment">The environment.</param> internal TypeparamMarkdownNodeParser(IParserPool parserPool, IEnvironment environment) { this.InitTemplate(environment); this._parserPool = parserPool; }