예제 #1
0
        public Task <DeferredMarkdownRenderingResult> DeferredRenderAsync(string markdown, MarkdownPostProcessor postProcessor = null)
        {
            var id = Guid.NewGuid();

            _deferred.TryAdd(id, new DeferredMarkdownQueueItem(markdown, postProcessor));
            return(Task.FromResult(new DeferredMarkdownRenderingResult(id, $"<markdown_{id}/>")));
        }
예제 #2
0
 public DeferredMarkdownQueueItem(string markdown, MarkdownPostProcessor postProcessor)
 {
     Markdown      = markdown;
     PostProcessor = postProcessor;
 }