Ejemplo n.º 1
0
        public static MarkdownPipelineBuilder UseLastArticle(this MarkdownPipelineBuilder pipeline, LastArticlesOptions options)
        {
            var extensions = pipeline.Extensions;

            if (!extensions.Contains <LastArticleExtension>())
            {
                extensions.Add(new LastArticleExtension(options));
            }

            return(pipeline);
        }
Ejemplo n.º 2
0
 public LastArticleExtension(LastArticlesOptions options)
 {
     this.options = options;
 }