Beispiel #1
0
 public HomeController(MarkdownLoader markdownLoader)
 {
     markdownBundle = markdownLoader.TryGetBundle("root");
     if (markdownBundle == null)
     {
         throw new ArgumentException("Couldn't get root bundle", nameof(markdownLoader));
     }
 }
Beispiel #2
0
 public HomeController(MarkdownLoader markdownLoader, ITzdbRepository repository)
 {
     markdownBundle = markdownLoader.TryGetBundle("root");
     if (markdownBundle == null)
     {
         throw new ArgumentException("Couldn't get root bundle", nameof(markdownLoader));
     }
     this.repository = repository;
 }
 public DocumentationController(MarkdownLoader loader)
 {
     this.loader = loader;
 }
 public DocumentationController(MarkdownLoader loader, TryDotNetOptions tryDotNetOptions)
 {
     this.loader           = loader;
     this.tryDotNetOptions = tryDotNetOptions;
 }